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,485 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.extractRedactedTrace = extractRedactedTrace;
|
|
7
|
+
exports.formatUnifiedBleCliResult = formatUnifiedBleCliResult;
|
|
8
|
+
Object.defineProperty(exports, "redactTraceDocument", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () {
|
|
11
|
+
return _traceFormat.redactTraceDocument;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
exports.runUnifiedBleCli = runUnifiedBleCli;
|
|
15
|
+
Object.defineProperty(exports, "validateTraceDocument", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () {
|
|
18
|
+
return _traceFormat.validateTraceDocument;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
var _promises = require("node:fs/promises");
|
|
22
|
+
var _nodeModule = require("node:module");
|
|
23
|
+
var _nodePath = require("node:path");
|
|
24
|
+
var _nodeUrl = require("node:url");
|
|
25
|
+
var _backendSdkAuthoring = require("./backend-sdk-authoring.js");
|
|
26
|
+
var _cliJson = require("./cli-json.js");
|
|
27
|
+
var _traceFormat = require("./diagnostics/trace-format.js");
|
|
28
|
+
var _scenarios = require("./tck/scenarios.js");
|
|
29
|
+
// src/cli.ts
|
|
30
|
+
|
|
31
|
+
const maximumTraceFileBytes = 1024 * 1024;
|
|
32
|
+
const requireFromCliWorkingDirectory = (0, _nodeModule.createRequire)((0, _nodeUrl.pathToFileURL)((0, _nodePath.resolve)(process.cwd(), 'unified-ble-manager-cli-loader.cjs')).href);
|
|
33
|
+
/**
|
|
34
|
+
* Runs non-interactive, Node-only diagnostics. A backend must be selected
|
|
35
|
+
* explicitly; this command never selects or simulates a browser/RN radio.
|
|
36
|
+
*/
|
|
37
|
+
async function runUnifiedBleCli(argumentsValue, runtime = defaultCliRuntime) {
|
|
38
|
+
const invocation = parseInvocation(argumentsValue);
|
|
39
|
+
if (invocation instanceof UnifiedBleCliFailureError) {
|
|
40
|
+
return failure(invocation.command, invocation.code, invocation.message);
|
|
41
|
+
}
|
|
42
|
+
try {
|
|
43
|
+
if (invocation.command === 'trace') {
|
|
44
|
+
return runTraceCommand(invocation, runtime);
|
|
45
|
+
}
|
|
46
|
+
const definition = await loadNodeBackendDefinition(invocation.backendModule, runtime);
|
|
47
|
+
if (invocation.command === 'doctor') {
|
|
48
|
+
return runDoctorCommand(definition);
|
|
49
|
+
}
|
|
50
|
+
if (invocation.command === 'capabilities') {
|
|
51
|
+
return runCapabilitiesCommand(definition);
|
|
52
|
+
}
|
|
53
|
+
if (invocation.command === 'tck') {
|
|
54
|
+
return runTckCommand(definition);
|
|
55
|
+
}
|
|
56
|
+
return runScenarioCommand(definition, invocation.scenarioId);
|
|
57
|
+
} catch (error) {
|
|
58
|
+
if (error instanceof UnifiedBleCliFailureError) {
|
|
59
|
+
return failure(invocation.command, error.code, error.message);
|
|
60
|
+
}
|
|
61
|
+
const message = error instanceof Error ? error.message : 'operation threw a non-Error value';
|
|
62
|
+
return failure(invocation.command, 'cli.execution-failed', message);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function parseInvocation(argumentsValue) {
|
|
66
|
+
const command = argumentsValue[0];
|
|
67
|
+
if (!isCliCommand(command)) {
|
|
68
|
+
return new UnifiedBleCliFailureError('cli.argument-invalid', 'expected doctor, capabilities, trace, tck, or scenario');
|
|
69
|
+
}
|
|
70
|
+
if (command === 'trace') {
|
|
71
|
+
const action = argumentsValue[1];
|
|
72
|
+
const tracePath = argumentsValue[2];
|
|
73
|
+
if (action !== 'validate' && action !== 'redact' || tracePath === undefined || argumentsValue.length !== 3) {
|
|
74
|
+
return new UnifiedBleCliFailureError('cli.argument-invalid', 'trace requires validate|redact <file>');
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
command,
|
|
78
|
+
action,
|
|
79
|
+
tracePath
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
const options = parseOptions(argumentsValue.slice(1), command);
|
|
83
|
+
if (options instanceof UnifiedBleCliFailureError) {
|
|
84
|
+
return options;
|
|
85
|
+
}
|
|
86
|
+
const backendModule = options.get('backend');
|
|
87
|
+
if (backendModule === undefined) {
|
|
88
|
+
return new UnifiedBleCliFailureError('cli.argument-invalid', `${command} requires --backend <module>`, command);
|
|
89
|
+
}
|
|
90
|
+
const scenarioId = options.get('scenario');
|
|
91
|
+
if (command === 'scenario' && scenarioId === undefined) {
|
|
92
|
+
return new UnifiedBleCliFailureError('cli.argument-invalid', 'scenario requires --scenario <id>', command);
|
|
93
|
+
}
|
|
94
|
+
if (command !== 'scenario' && scenarioId !== undefined) {
|
|
95
|
+
return new UnifiedBleCliFailureError('cli.argument-invalid', `${command} does not accept --scenario`, command);
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
command,
|
|
99
|
+
backendModule,
|
|
100
|
+
scenarioId: scenarioId ?? null
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function parseOptions(argumentsValue, command) {
|
|
104
|
+
const allowed = command === 'scenario' ? new Set(['backend', 'scenario']) : new Set(['backend']);
|
|
105
|
+
const options = new Map();
|
|
106
|
+
for (let index = 0; index < argumentsValue.length; index += 1) {
|
|
107
|
+
const token = argumentsValue[index];
|
|
108
|
+
if (token === undefined || !token.startsWith('--')) {
|
|
109
|
+
return new UnifiedBleCliFailureError('cli.argument-invalid', `${command} accepts named options only`);
|
|
110
|
+
}
|
|
111
|
+
const name = token.slice(2);
|
|
112
|
+
if (!allowed.has(name)) {
|
|
113
|
+
return new UnifiedBleCliFailureError('cli.argument-invalid', `${command} does not accept --${name}`);
|
|
114
|
+
}
|
|
115
|
+
if (options.has(name)) {
|
|
116
|
+
return new UnifiedBleCliFailureError('cli.argument-invalid', `--${name} may be provided once`);
|
|
117
|
+
}
|
|
118
|
+
const value = argumentsValue[index + 1];
|
|
119
|
+
if (value === undefined || value.startsWith('--') || value.length === 0) {
|
|
120
|
+
return new UnifiedBleCliFailureError('cli.argument-invalid', `--${name} requires a value`);
|
|
121
|
+
}
|
|
122
|
+
options.set(name, value);
|
|
123
|
+
index += 1;
|
|
124
|
+
}
|
|
125
|
+
return options;
|
|
126
|
+
}
|
|
127
|
+
async function loadNodeBackendDefinition(moduleSpecifier, runtime) {
|
|
128
|
+
let definition;
|
|
129
|
+
try {
|
|
130
|
+
definition = await runtime.loadBackendModule(moduleSpecifier);
|
|
131
|
+
} catch (error) {
|
|
132
|
+
const message = error instanceof Error ? error.message : 'backend module loader threw a non-Error value';
|
|
133
|
+
throw new UnifiedBleCliFailureError('cli.backend-load-failed', `unable to load ${moduleSpecifier}: ${message}`);
|
|
134
|
+
}
|
|
135
|
+
try {
|
|
136
|
+
const verified = (0, _backendSdkAuthoring.createBackendAuthorDefinition)(definition);
|
|
137
|
+
assertNodeCapableHost(verified.factory.provider.descriptor.hostKind);
|
|
138
|
+
return verified;
|
|
139
|
+
} catch (error) {
|
|
140
|
+
if (error instanceof UnifiedBleCliFailureError) {
|
|
141
|
+
throw error;
|
|
142
|
+
}
|
|
143
|
+
const message = error instanceof Error ? error.message : 'backend definition validation threw a non-Error value';
|
|
144
|
+
throw new UnifiedBleCliFailureError('cli.backend-invalid', `invalid backend definition from ${moduleSpecifier}: ${message}`);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
function assertNodeCapableHost(hostKind) {
|
|
148
|
+
if (hostKind !== 'node' && hostKind !== 'electron-main' && hostKind !== 'test') {
|
|
149
|
+
throw new UnifiedBleCliFailureError('cli.host-unsupported', `CLI cannot drive ${hostKind}; select an explicit Node-capable backend`);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
async function runDoctorCommand(definition) {
|
|
153
|
+
const adapters = await definition.factory.provider.listAdapters();
|
|
154
|
+
return success('doctor', {
|
|
155
|
+
backendId: definition.metadata.backendId,
|
|
156
|
+
platformId: definition.metadata.platformId,
|
|
157
|
+
providerId: definition.factory.provider.descriptor.providerId,
|
|
158
|
+
hostKind: definition.factory.provider.descriptor.hostKind,
|
|
159
|
+
loadability: definition.factory.provider.descriptor.loadability,
|
|
160
|
+
selectedAdapterId: String(definition.factory.selection.selectedAdapterId),
|
|
161
|
+
adapters: adapters.map(adapter => ({
|
|
162
|
+
adapterId: String(adapter.adapterId),
|
|
163
|
+
displayName: adapter.displayName,
|
|
164
|
+
availability: adapter.state.availability,
|
|
165
|
+
authorization: adapter.state.authorization,
|
|
166
|
+
power: adapter.state.power,
|
|
167
|
+
safeReason: adapter.state.safeReason,
|
|
168
|
+
limitations: [...adapter.limitations]
|
|
169
|
+
}))
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
async function runCapabilitiesCommand(definition) {
|
|
173
|
+
const fixture = await definition.factory.create();
|
|
174
|
+
try {
|
|
175
|
+
return success('capabilities', capabilityReportData((0, _backendSdkAuthoring.inspectBackendCapabilities)(fixture.backend)));
|
|
176
|
+
} finally {
|
|
177
|
+
await fixture.dispose();
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
async function runTckCommand(definition) {
|
|
181
|
+
const report = await (0, _backendSdkAuthoring.runBackendAuthorTck)(definition);
|
|
182
|
+
return success('tck', tckReportData(report));
|
|
183
|
+
}
|
|
184
|
+
async function runScenarioCommand(definition, scenarioId) {
|
|
185
|
+
if (scenarioId === null) {
|
|
186
|
+
throw new UnifiedBleCliFailureError('cli.argument-invalid', 'scenario requires --scenario <id>');
|
|
187
|
+
}
|
|
188
|
+
const requestedScenario = _scenarios.baseTckScenarios.find(candidate => candidate.id === scenarioId);
|
|
189
|
+
if (requestedScenario === undefined) {
|
|
190
|
+
throw new UnifiedBleCliFailureError('cli.argument-invalid', `TCK scenario is not registered: ${scenarioId}`);
|
|
191
|
+
}
|
|
192
|
+
const report = await (0, _backendSdkAuthoring.runBackendAuthorTck)(definition);
|
|
193
|
+
const receipt = report.receipts.find(candidate => candidate.scenarioId === requestedScenario.id);
|
|
194
|
+
if (receipt === undefined) {
|
|
195
|
+
throw new UnifiedBleCliFailureError('cli.execution-failed', `selected backend did not execute applicable scenario ${requestedScenario.id}`);
|
|
196
|
+
}
|
|
197
|
+
return success('scenario', {
|
|
198
|
+
scenarioId: requestedScenario.id,
|
|
199
|
+
receipt: tckReceiptData(receipt),
|
|
200
|
+
verification: report.verification,
|
|
201
|
+
proofScope: report.proofScope
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
async function runTraceCommand(invocation, runtime) {
|
|
205
|
+
let input;
|
|
206
|
+
try {
|
|
207
|
+
input = (0, _cliJson.parseCliJson)(await runtime.readTextFile(invocation.tracePath));
|
|
208
|
+
} catch (error) {
|
|
209
|
+
const message = error instanceof Error ? error.message : 'trace input failed without an Error value';
|
|
210
|
+
return failure('trace', 'cli.trace-invalid', message);
|
|
211
|
+
}
|
|
212
|
+
if (invocation.action === 'redact') {
|
|
213
|
+
try {
|
|
214
|
+
const trace = (0, _traceFormat.redactTraceDocument)(input);
|
|
215
|
+
return success('trace', {
|
|
216
|
+
action: 'redact',
|
|
217
|
+
trace
|
|
218
|
+
});
|
|
219
|
+
} catch (error) {
|
|
220
|
+
const message = error instanceof Error ? error.message : 'trace redaction failed without an Error value';
|
|
221
|
+
return failure('trace', 'cli.trace-invalid', message);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
const validation = (0, _traceFormat.validateTraceDocument)(input);
|
|
225
|
+
return traceValidationResult(validation);
|
|
226
|
+
}
|
|
227
|
+
function traceValidationResult(validation) {
|
|
228
|
+
const data = {
|
|
229
|
+
valid: validation.valid,
|
|
230
|
+
failures: validation.failures.map(item => ({
|
|
231
|
+
path: item.path,
|
|
232
|
+
reason: item.reason
|
|
233
|
+
}))
|
|
234
|
+
};
|
|
235
|
+
if (validation.valid) {
|
|
236
|
+
return success('trace', data);
|
|
237
|
+
}
|
|
238
|
+
return {
|
|
239
|
+
ok: false,
|
|
240
|
+
command: 'trace',
|
|
241
|
+
data,
|
|
242
|
+
failures: [{
|
|
243
|
+
code: 'cli.trace-invalid',
|
|
244
|
+
message: `trace format validation failed with ${validation.failures.length} violation(s)`
|
|
245
|
+
}]
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
function capabilityReportData(report) {
|
|
249
|
+
return {
|
|
250
|
+
backendId: report.backendId,
|
|
251
|
+
platformId: report.platformId,
|
|
252
|
+
capabilities: report.capabilities.map(capability => ({
|
|
253
|
+
id: capability.id,
|
|
254
|
+
state: capability.state,
|
|
255
|
+
implementationOrigin: capability.implementationOrigin,
|
|
256
|
+
tck: {
|
|
257
|
+
suiteId: capability.tck.suiteId,
|
|
258
|
+
requiredScenarioIds: [...capability.tck.requiredScenarioIds],
|
|
259
|
+
contractMinimum: capability.tck.contractMinimum,
|
|
260
|
+
contractMaximum: capability.tck.contractMaximum
|
|
261
|
+
},
|
|
262
|
+
evidence: {
|
|
263
|
+
verification: capability.evidence.verification,
|
|
264
|
+
receiptId: capability.evidence.receiptId,
|
|
265
|
+
evidenceLevel: capability.evidence.evidenceLevel,
|
|
266
|
+
implementationVersion: capability.evidence.implementationVersion,
|
|
267
|
+
sourceDigest: capability.evidence.sourceDigest,
|
|
268
|
+
scenarioIds: [...capability.evidence.scenarioIds]
|
|
269
|
+
},
|
|
270
|
+
limitations: capability.limitations.map(limitation => ({
|
|
271
|
+
code: limitation.code,
|
|
272
|
+
explanation: limitation.explanation,
|
|
273
|
+
affectedGuarantee: limitation.affectedGuarantee
|
|
274
|
+
})),
|
|
275
|
+
limits: capability.limits
|
|
276
|
+
}))
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
function tckReportData(report) {
|
|
280
|
+
return {
|
|
281
|
+
backendId: report.backendId,
|
|
282
|
+
verification: report.verification,
|
|
283
|
+
proofScope: report.proofScope,
|
|
284
|
+
identity: {
|
|
285
|
+
registeredBackendId: report.identity.registeredBackendId,
|
|
286
|
+
registeredPlatformId: report.identity.registeredPlatformId,
|
|
287
|
+
providerId: report.identity.providerId,
|
|
288
|
+
hostKind: report.identity.hostKind,
|
|
289
|
+
implementationVersion: report.identity.implementationVersion,
|
|
290
|
+
selectedAdapterId: report.identity.selectedAdapterId
|
|
291
|
+
},
|
|
292
|
+
baseScenarioIds: [...report.baseScenarioIds],
|
|
293
|
+
featureSuiteIds: [...report.featureSuiteIds],
|
|
294
|
+
featureBindings: report.featureBindings.map(binding => ({
|
|
295
|
+
featureId: binding.featureId,
|
|
296
|
+
state: binding.state,
|
|
297
|
+
implementationOrigin: binding.implementationOrigin,
|
|
298
|
+
suiteId: binding.suiteId,
|
|
299
|
+
requiredScenarioIds: [...binding.requiredScenarioIds],
|
|
300
|
+
contractMinimum: binding.contractMinimum,
|
|
301
|
+
contractMaximum: binding.contractMaximum,
|
|
302
|
+
evidenceVerification: binding.evidenceVerification,
|
|
303
|
+
receiptId: binding.receiptId,
|
|
304
|
+
evidenceLevel: binding.evidenceLevel,
|
|
305
|
+
implementationVersion: binding.implementationVersion,
|
|
306
|
+
sourceDigest: binding.sourceDigest,
|
|
307
|
+
evidenceScenarioIds: [...binding.evidenceScenarioIds],
|
|
308
|
+
limitations: binding.limitations.map(limitation => ({
|
|
309
|
+
code: limitation.code,
|
|
310
|
+
explanation: limitation.explanation,
|
|
311
|
+
affectedGuarantee: limitation.affectedGuarantee
|
|
312
|
+
})),
|
|
313
|
+
limits: binding.limits
|
|
314
|
+
})),
|
|
315
|
+
receipts: report.receipts.map(tckReceiptData)
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
function tckReceiptData(receipt) {
|
|
319
|
+
return {
|
|
320
|
+
scenarioId: receipt.scenarioId,
|
|
321
|
+
proof: {
|
|
322
|
+
scope: receipt.proof.scope,
|
|
323
|
+
claim: receipt.proof.claim,
|
|
324
|
+
receiptId: receipt.proof.receiptId
|
|
325
|
+
},
|
|
326
|
+
facts: receipt.facts.map(fact => ({
|
|
327
|
+
id: fact.id,
|
|
328
|
+
holds: fact.holds,
|
|
329
|
+
detail: fact.detail
|
|
330
|
+
})),
|
|
331
|
+
error: receipt.error === null ? null : {
|
|
332
|
+
code: receipt.error.code,
|
|
333
|
+
domain: receipt.error.domain,
|
|
334
|
+
operation: receipt.error.operation
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
function success(command, data) {
|
|
339
|
+
return {
|
|
340
|
+
ok: true,
|
|
341
|
+
command,
|
|
342
|
+
data,
|
|
343
|
+
failures: []
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
function failure(command, code, message) {
|
|
347
|
+
return {
|
|
348
|
+
ok: false,
|
|
349
|
+
command,
|
|
350
|
+
data: null,
|
|
351
|
+
failures: [{
|
|
352
|
+
code,
|
|
353
|
+
message
|
|
354
|
+
}]
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
function isCliCommand(value) {
|
|
358
|
+
return value === 'doctor' || value === 'capabilities' || value === 'trace' || value === 'tck' || value === 'scenario';
|
|
359
|
+
}
|
|
360
|
+
class UnifiedBleCliFailureError extends Error {
|
|
361
|
+
constructor(code, message, command = null) {
|
|
362
|
+
super(message);
|
|
363
|
+
this.code = code;
|
|
364
|
+
this.command = command;
|
|
365
|
+
this.name = 'UnifiedBleCliFailureError';
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
const defaultCliRuntime = {
|
|
369
|
+
readTextFile: async path => {
|
|
370
|
+
const metadata = await (0, _promises.stat)(path);
|
|
371
|
+
if (!metadata.isFile()) {
|
|
372
|
+
throw new Error(`trace input is not a regular file: ${path}`);
|
|
373
|
+
}
|
|
374
|
+
if (metadata.size > maximumTraceFileBytes) {
|
|
375
|
+
throw new Error(`trace input exceeds ${maximumTraceFileBytes} bytes: ${path}`);
|
|
376
|
+
}
|
|
377
|
+
return (0, _promises.readFile)(path, 'utf8');
|
|
378
|
+
},
|
|
379
|
+
loadBackendModule: async moduleSpecifier => {
|
|
380
|
+
const filePath = filePathFromModuleSpecifier(moduleSpecifier);
|
|
381
|
+
const requireSpecifier = filePath ?? moduleSpecifier;
|
|
382
|
+
if (!isExplicitEsModuleFile(requireSpecifier)) {
|
|
383
|
+
try {
|
|
384
|
+
const required = requireFromCliWorkingDirectory(requireSpecifier);
|
|
385
|
+
return requiredBackendDefinition(required);
|
|
386
|
+
} catch (error) {
|
|
387
|
+
if (!isEsModuleRequireError(error)) {
|
|
388
|
+
throw error;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
const importSpecifier = dynamicImportSpecifier(moduleSpecifier, filePath);
|
|
393
|
+
try {
|
|
394
|
+
const imported = await importBackendModule(importSpecifier);
|
|
395
|
+
return requiredBackendDefinition(imported);
|
|
396
|
+
} catch (error) {
|
|
397
|
+
const detail = error instanceof Error ? error.message : String(error);
|
|
398
|
+
throw new Error(`ES module import failed for ${importSpecifier}: ${detail}`, {
|
|
399
|
+
cause: error
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
function isRelativeOrAbsolutePath(moduleSpecifier) {
|
|
405
|
+
return moduleSpecifier.startsWith('.') || (0, _nodePath.isAbsolute)(moduleSpecifier);
|
|
406
|
+
}
|
|
407
|
+
function filePathFromModuleSpecifier(moduleSpecifier) {
|
|
408
|
+
if (!moduleSpecifier.startsWith('file:')) {
|
|
409
|
+
return null;
|
|
410
|
+
}
|
|
411
|
+
const url = new URL(moduleSpecifier);
|
|
412
|
+
if (url.protocol !== 'file:') {
|
|
413
|
+
throw new Error(`backend module URL must use the file protocol: ${moduleSpecifier}`);
|
|
414
|
+
}
|
|
415
|
+
return (0, _nodeUrl.fileURLToPath)(moduleSpecifier);
|
|
416
|
+
}
|
|
417
|
+
function dynamicImportSpecifier(moduleSpecifier, filePath) {
|
|
418
|
+
if (filePath !== null) {
|
|
419
|
+
return (0, _nodeUrl.pathToFileURL)(filePath).href;
|
|
420
|
+
}
|
|
421
|
+
if (isRelativeOrAbsolutePath(moduleSpecifier)) {
|
|
422
|
+
return (0, _nodeUrl.pathToFileURL)((0, _nodePath.resolve)(process.cwd(), moduleSpecifier)).href;
|
|
423
|
+
}
|
|
424
|
+
return moduleSpecifier;
|
|
425
|
+
}
|
|
426
|
+
function isExplicitEsModuleFile(moduleSpecifier) {
|
|
427
|
+
return moduleSpecifier.toLowerCase().endsWith('.mjs');
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Keeps Node's native `import()` available when a CommonJS test runner has
|
|
432
|
+
* transformed this source file. The function body is static and never embeds a
|
|
433
|
+
* backend-supplied specifier; the specifier remains a dynamic-import argument.
|
|
434
|
+
*/
|
|
435
|
+
async function importBackendModule(importSpecifier) {
|
|
436
|
+
// eslint-disable-next-line no-new-func -- The static expression preserves Node import() under transformed CommonJS tests.
|
|
437
|
+
const nativeDynamicImport = Function('specifier', 'return import(specifier)');
|
|
438
|
+
const imported = nativeDynamicImport(importSpecifier);
|
|
439
|
+
if (!isPromiseLike(imported)) {
|
|
440
|
+
throw new Error('native dynamic import did not return a promise');
|
|
441
|
+
}
|
|
442
|
+
let namespace;
|
|
443
|
+
try {
|
|
444
|
+
namespace = await imported;
|
|
445
|
+
} catch (error) {
|
|
446
|
+
const detail = error instanceof Error ? error.message : String(error);
|
|
447
|
+
throw new Error(`native dynamic import failed: ${detail}`, {
|
|
448
|
+
cause: error
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
if (!isBackendModuleNamespace(namespace)) {
|
|
452
|
+
throw new Error('dynamic import did not return a module namespace');
|
|
453
|
+
}
|
|
454
|
+
return namespace;
|
|
455
|
+
}
|
|
456
|
+
function isPromiseLike(value) {
|
|
457
|
+
return value !== null && (typeof value === 'object' || typeof value === 'function') && 'then' in value && typeof value.then === 'function';
|
|
458
|
+
}
|
|
459
|
+
function isBackendModuleNamespace(value) {
|
|
460
|
+
return value !== null && typeof value === 'object';
|
|
461
|
+
}
|
|
462
|
+
function isEsModuleRequireError(error) {
|
|
463
|
+
return error !== null && typeof error === 'object' && 'code' in error && error.code === 'ERR_REQUIRE_ESM';
|
|
464
|
+
}
|
|
465
|
+
function requiredBackendDefinition(moduleNamespace) {
|
|
466
|
+
const definition = moduleNamespace.unifiedBleBackend;
|
|
467
|
+
if (definition === undefined) {
|
|
468
|
+
throw new Error('module must export unifiedBleBackend');
|
|
469
|
+
}
|
|
470
|
+
return definition;
|
|
471
|
+
}
|
|
472
|
+
function formatUnifiedBleCliResult(result) {
|
|
473
|
+
return `${JSON.stringify(result)}\n`;
|
|
474
|
+
}
|
|
475
|
+
function extractRedactedTrace(result) {
|
|
476
|
+
if (result.command !== 'trace' || result.data === null || result.data.action !== 'redact') {
|
|
477
|
+
return null;
|
|
478
|
+
}
|
|
479
|
+
const trace = result.data.trace;
|
|
480
|
+
if (trace === undefined || typeof trace !== 'object' || trace === null || Array.isArray(trace)) {
|
|
481
|
+
return null;
|
|
482
|
+
}
|
|
483
|
+
return (0, _traceFormat.validateTraceDocument)(trace).valid ? (0, _traceFormat.redactTraceDocument)(trace) : null;
|
|
484
|
+
}
|
|
485
|
+
//# sourceMappingURL=cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_promises","require","_nodeModule","_nodePath","_nodeUrl","_backendSdkAuthoring","_cliJson","_traceFormat","_scenarios","maximumTraceFileBytes","requireFromCliWorkingDirectory","createRequire","pathToFileURL","resolve","process","cwd","href","runUnifiedBleCli","argumentsValue","runtime","defaultCliRuntime","invocation","parseInvocation","UnifiedBleCliFailureError","failure","command","code","message","runTraceCommand","definition","loadNodeBackendDefinition","backendModule","runDoctorCommand","runCapabilitiesCommand","runTckCommand","runScenarioCommand","scenarioId","error","Error","isCliCommand","action","tracePath","undefined","length","options","parseOptions","slice","get","allowed","Set","Map","index","token","startsWith","name","has","value","set","moduleSpecifier","loadBackendModule","verified","createBackendAuthorDefinition","assertNodeCapableHost","factory","provider","descriptor","hostKind","adapters","listAdapters","success","backendId","metadata","platformId","providerId","loadability","selectedAdapterId","String","selection","map","adapter","adapterId","displayName","availability","state","authorization","power","safeReason","limitations","fixture","create","capabilityReportData","inspectBackendCapabilities","backend","dispose","report","runBackendAuthorTck","tckReportData","requestedScenario","baseTckScenarios","find","candidate","id","receipt","receipts","tckReceiptData","verification","proofScope","input","parseCliJson","readTextFile","trace","redactTraceDocument","validation","validateTraceDocument","traceValidationResult","data","valid","failures","item","path","reason","ok","capabilities","capability","implementationOrigin","tck","suiteId","requiredScenarioIds","contractMinimum","contractMaximum","evidence","receiptId","evidenceLevel","implementationVersion","sourceDigest","scenarioIds","limitation","explanation","affectedGuarantee","limits","identity","registeredBackendId","registeredPlatformId","baseScenarioIds","featureSuiteIds","featureBindings","binding","featureId","evidenceVerification","evidenceScenarioIds","proof","scope","claim","facts","fact","holds","detail","domain","operation","constructor","stat","isFile","size","readFile","filePath","filePathFromModuleSpecifier","requireSpecifier","isExplicitEsModuleFile","required","requiredBackendDefinition","isEsModuleRequireError","importSpecifier","dynamicImportSpecifier","imported","importBackendModule","cause","isRelativeOrAbsolutePath","isAbsolute","url","URL","protocol","fileURLToPath","toLowerCase","endsWith","nativeDynamicImport","Function","isPromiseLike","namespace","isBackendModuleNamespace","then","moduleNamespace","unifiedBleBackend","formatUnifiedBleCliResult","result","JSON","stringify","extractRedactedTrace","Array","isArray"],"sourceRoot":"../../src","sources":["cli.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;AAEA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAIA,IAAAI,oBAAA,GAAAJ,OAAA;AAOA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,YAA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
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.copyBytes = copyBytes;
|
|
7
|
+
exports.dataView = dataView;
|
|
8
|
+
// src/codecs-primitives.ts
|
|
9
|
+
|
|
10
|
+
/** Creates a view over exactly the supplied Uint8Array range without copying. */
|
|
11
|
+
function dataView(bytes) {
|
|
12
|
+
return new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** Returns a receiver-owned byte copy for codec consumers that retain a payload. */
|
|
16
|
+
function copyBytes(bytes) {
|
|
17
|
+
return new Uint8Array(bytes);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=codecs-primitives.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["dataView","bytes","DataView","buffer","byteOffset","byteLength","copyBytes","Uint8Array"],"sourceRoot":"../../src","sources":["codecs-primitives.ts"],"mappings":";;;;;;;AAAA;;AAEA;AACO,SAASA,QAAQA,CAACC,KAA2B,EAAY;EAC9D,OAAO,IAAIC,QAAQ,CAACD,KAAK,CAACE,MAAM,EAAEF,KAAK,CAACG,UAAU,EAAEH,KAAK,CAACI,UAAU,CAAC;AACvE;;AAEA;AACO,SAASC,SAASA,CAACL,KAA2B,EAAc;EACjE,OAAO,IAAIM,UAAU,CAACN,KAAK,CAAC;AAC9B","ignoreList":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ProfileCodecError", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _errors.ProfileCodecError;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "copyBytes", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _codecsPrimitives.copyBytes;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "dataView", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _codecsPrimitives.dataView;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "decodeIeee11073Float", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _ieee.decodeIeee11073Float;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "decodeIeee11073Sfloat", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _ieee.decodeIeee11073Sfloat;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "encodeIeee11073Float", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _ieee.encodeIeee11073Float;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "encodeIeee11073Sfloat", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _ieee.encodeIeee11073Sfloat;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
var _codecsPrimitives = require("./codecs-primitives.js");
|
|
49
|
+
var _errors = require("./profiles/errors.js");
|
|
50
|
+
var _ieee = require("./profiles/ieee-11073.js");
|
|
51
|
+
//# sourceMappingURL=codecs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_codecsPrimitives","require","_errors","_ieee"],"sourceRoot":"../../src","sources":["codecs.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAAA,iBAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAF,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AggregateStreamQuota = void 0;
|
|
7
|
+
var _errors = require("../backend-contract/errors.js");
|
|
8
|
+
// src/core/aggregate-stream-quota.ts
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Applies one aggregate retained-byte ceiling across registered core streams.
|
|
12
|
+
* A quota breach terminates the producing stream with its one overflow terminal
|
|
13
|
+
* rather than allowing a producer to allocate past its declared budget.
|
|
14
|
+
*/
|
|
15
|
+
class AggregateStreamQuota {
|
|
16
|
+
streams = new Set();
|
|
17
|
+
constructor(maximumRetainedBytes) {
|
|
18
|
+
this.maximumRetainedBytes = maximumRetainedBytes;
|
|
19
|
+
if (!Number.isSafeInteger(maximumRetainedBytes) || maximumRetainedBytes < 1) {
|
|
20
|
+
throw (0, _errors.contractError)('argument.invalid', 'stream', 'aggregate-stream-quota.maximum-retained-bytes');
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
register(stream) {
|
|
24
|
+
if (this.retainedBytes() + stream.retainedBytes() > this.maximumRetainedBytes) {
|
|
25
|
+
throw (0, _errors.contractError)('stream.quota', 'stream', 'aggregate-stream-quota.register');
|
|
26
|
+
}
|
|
27
|
+
this.streams.add(stream);
|
|
28
|
+
}
|
|
29
|
+
unregister(stream) {
|
|
30
|
+
this.streams.delete(stream);
|
|
31
|
+
}
|
|
32
|
+
emit(stream, value, byteLength, key = null, payloadBytes = byteLength) {
|
|
33
|
+
if (!this.streams.has(stream)) {
|
|
34
|
+
throw (0, _errors.contractError)('lifecycle.invalid-state', 'stream', 'aggregate-stream-quota.emit-unregistered');
|
|
35
|
+
}
|
|
36
|
+
const projected = stream.projectedRetainedBytes(byteLength, key);
|
|
37
|
+
if (this.retainedBytes() - stream.retainedBytes() + projected > this.maximumRetainedBytes) {
|
|
38
|
+
return stream.terminateForAggregateQuota(byteLength);
|
|
39
|
+
}
|
|
40
|
+
return stream.emit(value, byteLength, key, payloadBytes);
|
|
41
|
+
}
|
|
42
|
+
retainedBytes() {
|
|
43
|
+
let total = 0;
|
|
44
|
+
for (const stream of this.streams) {
|
|
45
|
+
total += stream.retainedBytes();
|
|
46
|
+
}
|
|
47
|
+
return total;
|
|
48
|
+
}
|
|
49
|
+
retainedPayloadBytes() {
|
|
50
|
+
let total = 0;
|
|
51
|
+
for (const stream of this.streams) {
|
|
52
|
+
total += stream.retainedPayloadBytes();
|
|
53
|
+
}
|
|
54
|
+
return total;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.AggregateStreamQuota = AggregateStreamQuota;
|
|
58
|
+
//# sourceMappingURL=aggregate-stream-quota.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_errors","require","AggregateStreamQuota","streams","Set","constructor","maximumRetainedBytes","Number","isSafeInteger","contractError","register","stream","retainedBytes","add","unregister","delete","emit","value","byteLength","key","payloadBytes","has","projected","projectedRetainedBytes","terminateForAggregateQuota","total","retainedPayloadBytes","exports"],"sourceRoot":"../../../src","sources":["core/aggregate-stream-quota.ts"],"mappings":";;;;;;AAEA,IAAAA,OAAA,GAAAC,OAAA;AAFA;;AAYA;AACA;AACA;AACA;AACA;AACO,MAAMC,oBAAoB,CAAC;EACfC,OAAO,GAAG,IAAIC,GAAG,CAAqB,CAAC;EAExDC,WAAWA,CAAkBC,oBAA4B,EAAE;IAAA,KAA9BA,oBAA4B,GAA5BA,oBAA4B;IACvD,IAAI,CAACC,MAAM,CAACC,aAAa,CAACF,oBAAoB,CAAC,IAAIA,oBAAoB,GAAG,CAAC,EAAE;MAC3E,MAAM,IAAAG,qBAAa,EAAC,kBAAkB,EAAE,QAAQ,EAAE,+CAA+C,CAAC;IACpG;EACF;EAEAC,QAAQA,CAAQC,MAAgC,EAAQ;IACtD,IAAI,IAAI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