@ovok/native 1.17.0-dev.2303 → 1.17.0-dev.2305
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/android/src/main/java/com/ovok/sdk/backgroundsync/OvokBackgroundSyncPackage.java +2 -0
- package/android/src/main/java/com/ovok/sdk/pairing/OvokPairingAgentModule.java +85 -0
- package/lib/commonjs/modules/next/bluetooth/adapters/android-pairing-agent.js +25 -0
- package/lib/commonjs/modules/next/bluetooth/adapters/android-pairing-agent.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/core/bluetooth.js +6 -1
- package/lib/commonjs/modules/next/bluetooth/core/bluetooth.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/core/device-link.js +16 -0
- package/lib/commonjs/modules/next/bluetooth/core/device-link.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/core/ports.js +2 -0
- package/lib/commonjs/modules/next/bluetooth/core/ports.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/create-bluetooth.js +2 -0
- package/lib/commonjs/modules/next/bluetooth/create-bluetooth.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/families/built-in.js +3 -2
- package/lib/commonjs/modules/next/bluetooth/families/built-in.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/families/clarity-recobro/bgx.js +16 -0
- package/lib/commonjs/modules/next/bluetooth/families/clarity-recobro/bgx.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/families/clarity-recobro/clarity-recobro.js +17 -0
- package/lib/commonjs/modules/next/bluetooth/families/clarity-recobro/clarity-recobro.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/families/clarity-recobro/frame.js +52 -0
- package/lib/commonjs/modules/next/bluetooth/families/clarity-recobro/frame.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/families/clarity-recobro/models.js +22 -0
- package/lib/commonjs/modules/next/bluetooth/families/clarity-recobro/models.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/families/clarity-recobro/monitor.js +173 -0
- package/lib/commonjs/modules/next/bluetooth/families/clarity-recobro/monitor.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/families/clarity-recobro/protocol.js +59 -0
- package/lib/commonjs/modules/next/bluetooth/families/clarity-recobro/protocol.js.map +1 -0
- package/lib/module/modules/next/bluetooth/adapters/android-pairing-agent.js +21 -0
- package/lib/module/modules/next/bluetooth/adapters/android-pairing-agent.js.map +1 -0
- package/lib/module/modules/next/bluetooth/core/bluetooth.js +6 -1
- package/lib/module/modules/next/bluetooth/core/bluetooth.js.map +1 -1
- package/lib/module/modules/next/bluetooth/core/device-link.js +16 -0
- package/lib/module/modules/next/bluetooth/core/device-link.js.map +1 -1
- package/lib/module/modules/next/bluetooth/core/ports.js +2 -0
- package/lib/module/modules/next/bluetooth/core/ports.js.map +1 -1
- package/lib/module/modules/next/bluetooth/create-bluetooth.js +2 -0
- package/lib/module/modules/next/bluetooth/create-bluetooth.js.map +1 -1
- package/lib/module/modules/next/bluetooth/families/built-in.js +3 -2
- package/lib/module/modules/next/bluetooth/families/built-in.js.map +1 -1
- package/lib/module/modules/next/bluetooth/families/clarity-recobro/bgx.js +14 -0
- package/lib/module/modules/next/bluetooth/families/clarity-recobro/bgx.js.map +1 -0
- package/lib/module/modules/next/bluetooth/families/clarity-recobro/clarity-recobro.js +9 -0
- package/lib/module/modules/next/bluetooth/families/clarity-recobro/clarity-recobro.js.map +1 -0
- package/lib/module/modules/next/bluetooth/families/clarity-recobro/frame.js +48 -0
- package/lib/module/modules/next/bluetooth/families/clarity-recobro/frame.js.map +1 -0
- package/lib/module/modules/next/bluetooth/families/clarity-recobro/models.js +20 -0
- package/lib/module/modules/next/bluetooth/families/clarity-recobro/models.js.map +1 -0
- package/lib/module/modules/next/bluetooth/families/clarity-recobro/monitor.js +169 -0
- package/lib/module/modules/next/bluetooth/families/clarity-recobro/monitor.js.map +1 -0
- package/lib/module/modules/next/bluetooth/families/clarity-recobro/protocol.js +56 -0
- package/lib/module/modules/next/bluetooth/families/clarity-recobro/protocol.js.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/android-pairing-agent.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/android-pairing-agent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/bluetooth-options.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/bluetooth-options.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/bluetooth.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/bluetooth.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/device-deps.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/device-deps.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/device-link.d.ts +6 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/device-link.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/ports.d.ts +6 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/core/ports.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/create-bluetooth.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/built-in.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/clarity-recobro/bgx.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/clarity-recobro/bgx.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/clarity-recobro/clarity-recobro.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/clarity-recobro/clarity-recobro.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/clarity-recobro/frame.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/clarity-recobro/frame.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/clarity-recobro/models.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/clarity-recobro/models.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/clarity-recobro/monitor.d.ts +16 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/clarity-recobro/monitor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/clarity-recobro/protocol.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/families/clarity-recobro/protocol.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/adapters/android-pairing-agent.d.ts +8 -0
- package/lib/typescript/module/src/modules/next/bluetooth/adapters/android-pairing-agent.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/core/bluetooth-options.d.ts +3 -1
- package/lib/typescript/module/src/modules/next/bluetooth/core/bluetooth-options.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/core/bluetooth.d.ts +2 -0
- package/lib/typescript/module/src/modules/next/bluetooth/core/bluetooth.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/core/device-deps.d.ts +3 -1
- package/lib/typescript/module/src/modules/next/bluetooth/core/device-deps.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/core/device-link.d.ts +6 -1
- package/lib/typescript/module/src/modules/next/bluetooth/core/device-link.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/core/ports.d.ts +6 -1
- package/lib/typescript/module/src/modules/next/bluetooth/core/ports.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/create-bluetooth.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/families/built-in.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/bgx.d.ts +8 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/bgx.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/clarity-recobro.d.ts +6 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/clarity-recobro.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/frame.d.ts +10 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/frame.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/models.d.ts +7 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/models.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/monitor.d.ts +16 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/monitor.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/protocol.d.ts +6 -0
- package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/protocol.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeviceModel } from "./catalog";
|
|
2
2
|
import { OutboxWatch } from "./outbox-watch";
|
|
3
|
-
import { AdapterState, AppLifecycle, BleCentral, BluetoothPermission, BluetoothPermissions, KeepAlive, Logger, PairedDeviceStore, ReadingSink } from "./ports";
|
|
3
|
+
import { AdapterState, AppLifecycle, BleCentral, BluetoothPermission, BluetoothPermissions, KeepAlive, Logger, PairedDeviceStore, PairingAgent, ReadingSink } from "./ports";
|
|
4
4
|
import { DeviceProtocol } from "./protocol";
|
|
5
5
|
/** The ports and data `Bluetooth` runs on; each platform entry point fills them in. */
|
|
6
6
|
type BluetoothOptions = {
|
|
@@ -12,6 +12,8 @@ type BluetoothOptions = {
|
|
|
12
12
|
sink: ReadingSink;
|
|
13
13
|
/** The OS permission prompts. */
|
|
14
14
|
permissions: BluetoothPermissions;
|
|
15
|
+
/** Enters a model's fixed PIN for the user; without one, the user types it into the system prompt. */
|
|
16
|
+
pairingAgent?: PairingAgent;
|
|
15
17
|
/** The models to identify, usually the built-in ones. */
|
|
16
18
|
models: readonly DeviceModel[];
|
|
17
19
|
/** The protocols that talk to them; a model whose protocol is missing is `unsupported` here. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bluetooth-options.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/bluetooth-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,SAAS,EACT,MAAM,EACN,iBAAiB,EACjB,WAAW,EACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,uFAAuF;AACvF,KAAK,gBAAgB,GAAG;IAEtB,gCAAgC;IAChC,OAAO,EAAE,UAAU,CAAC;IAEpB,qCAAqC;IACrC,KAAK,EAAE,iBAAiB,CAAC;IAEzB,gCAAgC;IAChC,IAAI,EAAE,WAAW,CAAC;IAElB,iCAAiC;IACjC,WAAW,EAAE,oBAAoB,CAAC;IAElC,yDAAyD;IACzD,MAAM,EAAE,SAAS,WAAW,EAAE,CAAC;IAE/B,gGAAgG;IAChG,SAAS,EAAE,SAAS,cAAc,EAAE,CAAC;IAErC,4CAA4C;IAC5C,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;IAEjB,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,gEAAgE;IAChE,SAAS,CAAC,EAAE,YAAY,CAAC;IAEzB,sFAAsF;IACtF,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,mIAAmI;IACnI,MAAM,CAAC,EAAE,WAAW,CAAC;IAErB,qHAAqH;IACrH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,mEAAmE;AACnE,KAAK,eAAe,GAAG;IAErB,mCAAmC;IACnC,KAAK,EAAE,YAAY,CAAC;IAEpB,kCAAkC;IAClC,UAAU,EAAE,mBAAmB,CAAC;CACjC,CAAC;AAEF,sCAAsC;AACtC,KAAK,eAAe,GAAG;IAErB,oLAAoL;IACpL,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"bluetooth-options.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/bluetooth-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,SAAS,EACT,MAAM,EACN,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,uFAAuF;AACvF,KAAK,gBAAgB,GAAG;IAEtB,gCAAgC;IAChC,OAAO,EAAE,UAAU,CAAC;IAEpB,qCAAqC;IACrC,KAAK,EAAE,iBAAiB,CAAC;IAEzB,gCAAgC;IAChC,IAAI,EAAE,WAAW,CAAC;IAElB,iCAAiC;IACjC,WAAW,EAAE,oBAAoB,CAAC;IAElC,sGAAsG;IACtG,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B,yDAAyD;IACzD,MAAM,EAAE,SAAS,WAAW,EAAE,CAAC;IAE/B,gGAAgG;IAChG,SAAS,EAAE,SAAS,cAAc,EAAE,CAAC;IAErC,4CAA4C;IAC5C,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;IAEjB,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,gEAAgE;IAChE,SAAS,CAAC,EAAE,YAAY,CAAC;IAEzB,sFAAsF;IACtF,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,mIAAmI;IACnI,MAAM,CAAC,EAAE,WAAW,CAAC;IAErB,qHAAqH;IACrH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,mEAAmE;AACnE,KAAK,eAAe,GAAG;IAErB,mCAAmC;IACnC,KAAK,EAAE,YAAY,CAAC;IAEpB,kCAAkC;IAClC,UAAU,EAAE,mBAAmB,CAAC;CACjC,CAAC;AAEF,sCAAsC;AACtC,KAAK,eAAe,GAAG;IAErB,oLAAoL;IACpL,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -36,6 +36,8 @@ declare class Bluetooth {
|
|
|
36
36
|
requestPermission: () => Promise<BluetoothPermission>;
|
|
37
37
|
/** Opens the system settings, the only place a `blocked` permission can be granted. */
|
|
38
38
|
openSettings: () => Promise<void>;
|
|
39
|
+
/** The PIN to show the user while `model` pairs, because the system prompt asks for it and this platform cannot enter it; `null` otherwise. */
|
|
40
|
+
pinToEnter: (model: DeviceModel) => string | null;
|
|
39
41
|
/** Whether this runtime has the protocol and the radio a model needs. */
|
|
40
42
|
runnable: (model: DeviceModel) => boolean;
|
|
41
43
|
/** Scans for the devices the selector names; identifies against the whole catalog, then filters. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bluetooth.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/bluetooth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CA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,0EAA0E;IACnE,eAAe,QAAO,SAAS,cAAc,EAAE,CAA8B;IAEpF,+GAA+G;IACxG,gBAAgB,GAAI,UAAU,MAAM,IAAI,KAAG,CAAC,MAAM,IAAI,CAAC,CAAsC;IAEpG,sFAAsF;IAC/E,MAAM,GAAI,SAAS,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC,CAA8C;IAE9F,iFAAiF;IAC1E,QAAQ,QAAO,SAAS,eAAe,EAAE,CAAuB;IAEvE,kGAAkG;IAC3F,iBAAiB,GAAI,UAAU,MAAM,IAAI,KAAG,CAAC,MAAM,IAAI,CAAC,CAAiC;IAEhG,qGAAqG;IAC9F,OAAO,QAAa,OAAO,CAAC,IAAI,CAAC,CAQtC;IAEF,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,OAAO,CAAkD;IAEjE,OAAO,CAAC,UAAU,CAIhB;IAEF,OAAO,CAAC,UAAU;IAIlB,qGAAqG;IACrG,OAAO,CAAC,OAAO,CAQb;IAEF,OAAO,CAAC,SAAS;IAKjB,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,YAAY;CAKrB;AAED,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeviceModel } from "./catalog";
|
|
2
|
-
import { BleCentral, Logger, PairedDeviceStore, ReadingSink } from "./ports";
|
|
2
|
+
import { BleCentral, Logger, PairedDeviceStore, PairingAgent, ReadingSink } from "./ports";
|
|
3
3
|
import { DeviceProtocol } from "./protocol";
|
|
4
4
|
/** What a `Device` runs on. */
|
|
5
5
|
type DeviceDeps = {
|
|
@@ -9,6 +9,8 @@ type DeviceDeps = {
|
|
|
9
9
|
store: PairedDeviceStore;
|
|
10
10
|
/** Where the device's live recording is saved; a device without one only shows what it streams. */
|
|
11
11
|
sink?: ReadingSink;
|
|
12
|
+
/** Enters the model's fixed PIN while a link opens; without one, the user types it. */
|
|
13
|
+
pairingAgent?: PairingAgent;
|
|
12
14
|
now: () => Date;
|
|
13
15
|
logger: Logger;
|
|
14
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-deps.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/device-deps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"device-deps.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/device-deps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,+BAA+B;AAC/B,KAAK,UAAU,GAAG;IAChB,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,cAAc,CAAC;IACzB,OAAO,EAAE,UAAU,CAAC;IACpB,KAAK,EAAE,iBAAiB,CAAC;IAEzB,mGAAmG;IACnG,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB,uFAAuF;IACvF,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,GAAG,EAAE,MAAM,IAAI,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { Advertisement } from "./advertisement";
|
|
2
|
+
import { DeviceModel } from "./catalog";
|
|
2
3
|
import { ConnectionState } from "./device-snapshot";
|
|
3
4
|
import { PairedDevice } from "./paired-device";
|
|
4
|
-
import { BleCentral, Logger } from "./ports";
|
|
5
|
+
import { BleCentral, Logger, PairingAgent } from "./ports";
|
|
5
6
|
import { DeviceProtocol, DeviceSecret } from "./protocol";
|
|
6
7
|
type LinkDeps = {
|
|
8
|
+
model: Pick<DeviceModel, "pin">;
|
|
7
9
|
protocol: DeviceProtocol;
|
|
8
10
|
central: BleCentral;
|
|
11
|
+
pairingAgent?: PairingAgent;
|
|
9
12
|
now: () => Date;
|
|
10
13
|
logger: Logger;
|
|
11
14
|
};
|
|
@@ -33,6 +36,8 @@ declare class DeviceLink {
|
|
|
33
36
|
pair(connection: unknown): Promise<void>;
|
|
34
37
|
close(): Promise<void>;
|
|
35
38
|
private openLink;
|
|
39
|
+
/** Bonding happens while the link opens, so the platform enters a fixed PIN only until the connect steps end. */
|
|
40
|
+
private expectPin;
|
|
36
41
|
/** Identify, clock, battery: what every new link runs before any action. */
|
|
37
42
|
private connectSteps;
|
|
38
43
|
/** The battery level only informs, so a device that cannot report it still connects; a refused identify still ends the link. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-link.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/device-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAA2B,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,UAAU,EAAY,MAAM,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"device-link.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/device-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,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C,IAAI,CAAC;IAOxC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;YAcrB,QAAQ;IAuCtB,iHAAiH;IACjH,OAAO,CAAC,SAAS;IAUjB,4EAA4E;YAC9D,YAAY;IAmB1B,gIAAgI;YAClH,SAAS;IAUvB,OAAO,CAAC,OAAO;IASf,OAAO,CAAC,MAAM;CAMf;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -56,6 +56,11 @@ interface BleCentral {
|
|
|
56
56
|
/** Opens a GATT connection to the device at `address`. */
|
|
57
57
|
connect(address: string): Promise<GattLink>;
|
|
58
58
|
}
|
|
59
|
+
/** Answers the system's pairing prompt with a PIN, on a platform that lets an app do so. */
|
|
60
|
+
interface PairingAgent {
|
|
61
|
+
/** Enters `pin` when the device at `address` asks for one, until the returned release is called. */
|
|
62
|
+
expectPin(address: string, pin: string): () => void;
|
|
63
|
+
}
|
|
59
64
|
/** The OS permission prompts Bluetooth needs. */
|
|
60
65
|
interface BluetoothPermissions {
|
|
61
66
|
/** The current permission, without prompting. */
|
|
@@ -113,5 +118,5 @@ declare const alwaysForeground: AppLifecycle;
|
|
|
113
118
|
/** A platform where nothing extra keeps the process alive. */
|
|
114
119
|
declare const noKeepAlive: KeepAlive;
|
|
115
120
|
export { alwaysForeground, noKeepAlive, silentLogger };
|
|
116
|
-
export type { AdapterState, AppLifecycle, AppVisibility, BleCentral, BluetoothPermission, BluetoothPermissions, ChooserFilter, GattLink, KeepAlive, LogContext, Logger, PairedDeviceStore, ReadingSink, SaveOutcome, ScanFilter, ScanHandlers, };
|
|
121
|
+
export type { AdapterState, AppLifecycle, AppVisibility, BleCentral, BluetoothPermission, BluetoothPermissions, ChooserFilter, GattLink, KeepAlive, LogContext, Logger, PairedDeviceStore, PairingAgent, ReadingSink, SaveOutcome, ScanFilter, ScanHandlers, };
|
|
117
122
|
//# sourceMappingURL=ports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ports.d.ts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E,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAEhD,kDAAkD;IAClD,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAEhD,uCAAuC;IACvC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAClD;AAED,QAAA,MAAM,YAAY,EAAE,MAA6E,CAAC;AAElG,qEAAqE;AACrE,QAAA,MAAM,gBAAgB,EAAE,YAMvB,CAAC;AAEF,8DAA8D;AAC9D,QAAA,MAAM,WAAW,EAAE,SAAyE,CAAC;AAE7F,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;AACvD,YAAY,EACV,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,QAAQ,EACR,SAAS,EACT,UAAU,EACV,MAAM,EACN,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,UAAU,EACV,YAAY,GACb,CAAC"}
|
|
1
|
+
{"version":3,"file":"ports.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/core/ports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,sEAAsE;AACtE,KAAK,YAAY,GAAG,SAAS,GAAG,IAAI,GAAG,KAAK,GAAG,cAAc,GAAG,aAAa,CAAC;AAE9E,gGAAgG;AAChG,KAAK,mBAA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AC;AAEF,8DAA8D;AAC9D,QAAA,MAAM,WAAW,EAAE,SAAyE,CAAC;AAE7F,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;AACvD,YAAY,EACV,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,QAAQ,EACR,SAAS,EACT,UAAU,EACV,MAAM,EACN,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,YAAY,GACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-bluetooth.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/bluetooth/create-bluetooth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"create-bluetooth.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/next/bluetooth/create-bluetooth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAMzC,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAGrD,OAAO,EAAE,cAAc,EAAmB,MAAM,8BAA8B,CAAC;AAG/E,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAkB/D,oGAAoG;AACpG,KAAK,sBAAsB,GAAG;IAE5B,kDAAkD;IAClD,IAAI,EAAE,cAAc,CAAC;IAErB,2HAA2H;IAC3H,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB,wDAAwD;IACxD,OAAO,EAAE,WAAW,CAAC;CACtB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAE9B;;;GAGG;AACH,QAAA,MAAM,eAAe,GAAI,2CAA2C,sBAAsB,KAAG,SAgB5F,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"built-in.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/families/built-in.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"built-in.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/next/bluetooth/families/built-in.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAuFlD,6FAA6F;AAC7F,QAAA,MAAM,eAAe,EAAE,SAAS,WAAW,EAoFzC,CAAC;AAEH,6CAA6C;AAC7C,QAAA,MAAM,kBAAkB,EAAE,SAAS,cAAc,EAoFhD,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** The Silicon Labs BGX13 Xpress Streaming Service the Recobro streams through. */
|
|
2
|
+
declare const BGX_SERVICE: string;
|
|
3
|
+
/** The BGX's transmit characteristic: the device's byte stream, as notifications. */
|
|
4
|
+
declare const BGX_STREAM_OUT: string;
|
|
5
|
+
/** The BGX's stream mode; it answers only once the link is paired and encrypted. */
|
|
6
|
+
declare const BGX_MODE: string;
|
|
7
|
+
export { BGX_MODE, BGX_SERVICE, BGX_STREAM_OUT };
|
|
8
|
+
//# sourceMappingURL=bgx.d.ts.map
|
package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/bgx.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bgx.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/clarity-recobro/bgx.ts"],"names":[],"mappings":"AAEA,mFAAmF;AACnF,QAAA,MAAM,WAAW,QAAmD,CAAC;AAErE,qFAAqF;AACrF,QAAA,MAAM,cAAc,QAAmD,CAAC;AAExE,oFAAoF;AACpF,QAAA,MAAM,QAAQ,QAAmD,CAAC;AAElE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DeviceProtocol } from "../../core/protocol";
|
|
2
|
+
import { CLARITY_RECOBRO_MODELS } from "./models";
|
|
3
|
+
/** The protocols of Clarity Medical's Recobro monitors. */
|
|
4
|
+
declare const CLARITY_RECOBRO_PROTOCOLS: readonly DeviceProtocol[];
|
|
5
|
+
export { CLARITY_RECOBRO_MODELS, CLARITY_RECOBRO_PROTOCOLS };
|
|
6
|
+
//# sourceMappingURL=clarity-recobro.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clarity-recobro.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/clarity-recobro/clarity-recobro.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGlD,2DAA2D;AAC3D,QAAA,MAAM,yBAAyB,EAAE,SAAS,cAAc,EAAc,CAAC;AAEvE,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Framing } from "../frame-tools/frame-stream";
|
|
2
|
+
/**
|
|
3
|
+
* Cuts `55 AA L` frames. They carry no checksum the monitor's own app checks; it trusts a frame once the next frame's
|
|
4
|
+
* sync follows it, and so does this.
|
|
5
|
+
*/
|
|
6
|
+
declare const recobroFraming: Framing;
|
|
7
|
+
/** The bytes after the length, where the frame counter, the module flags and the module blocks are. */
|
|
8
|
+
declare const bodyOf: (frame: Uint8Array) => Uint8Array;
|
|
9
|
+
export { bodyOf, recobroFraming };
|
|
10
|
+
//# sourceMappingURL=frame.d.ts.map
|
package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/frame.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/clarity-recobro/frame.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,OAAO,EAAgB,MAAM,6BAA6B,CAAC;AAuB7E;;;GAGG;AACH,QAAA,MAAM,cAAc,EAAE,OAoBrB,CAAC;AAEF,uGAAuG;AACvG,QAAA,MAAM,MAAM,GAAI,OAAO,UAAU,KAAG,UAA0C,CAAC;AAE/E,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DeviceModel } from "../../core/catalog";
|
|
2
|
+
/** The passkey every Recobro's BLE bridge asks for; the device never shows it. */
|
|
3
|
+
declare const RECOBRO_PASSKEY = "821687";
|
|
4
|
+
/** Clarity Medical's monitors in COMM mode BLE; in Bluetooth Classic mode they need an SPP link this SDK does not open. */
|
|
5
|
+
declare const CLARITY_RECOBRO_MODELS: readonly DeviceModel[];
|
|
6
|
+
export { CLARITY_RECOBRO_MODELS, RECOBRO_PASSKEY };
|
|
7
|
+
//# sourceMappingURL=models.d.ts.map
|
package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/models.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/clarity-recobro/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAMjD,kFAAkF;AAClF,QAAA,MAAM,eAAe,WAAW,CAAC;AAIjC,2HAA2H;AAC3H,QAAA,MAAM,sBAAsB,EAAE,SAAS,WAAW,EAKjD,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,CAAC"}
|
package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/monitor.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LiveValues } from "../../core/reading";
|
|
2
|
+
type Values = LiveValues["values"];
|
|
3
|
+
/** Turns frame bodies into the values each module commits, about once per 67-frame counter cycle. */
|
|
4
|
+
declare class RecobroMonitor {
|
|
5
|
+
private readonly ecg;
|
|
6
|
+
private readonly spo2;
|
|
7
|
+
private readonly nibp;
|
|
8
|
+
private lastBloodPressure;
|
|
9
|
+
/** The values this frame completes, empty for most frames. */
|
|
10
|
+
valuesOf(body: Uint8Array): Values;
|
|
11
|
+
private module;
|
|
12
|
+
/** A finished measurement stays in the slots for later cycles, so it counts once until a different one arrives. */
|
|
13
|
+
private bloodPressure;
|
|
14
|
+
}
|
|
15
|
+
export { RecobroMonitor };
|
|
16
|
+
//# sourceMappingURL=monitor.d.ts.map
|
package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/monitor.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/clarity-recobro/monitor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAY,MAAM,oBAAoB,CAAC;AAsC1D,KAAK,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;AAqFnC,qGAAqG;AACrG,cAAM,cAAc;IAClB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA+B;IACnD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgC;IACrD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgC;IACrD,OAAO,CAAC,iBAAiB,CAAc;IAEvC,8DAA8D;IACvD,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM;IAWzC,OAAO,CAAC,MAAM;IAiBd,mHAAmH;IACnH,OAAO,CAAC,aAAa;CAQtB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/protocol.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DeviceProtocol, ProtocolContext } from "../../core/protocol";
|
|
2
|
+
type Connection = Pick<ProtocolContext, "link" | "now">;
|
|
3
|
+
/** The Recobro streams its monitor data through the BGX bridge once paired. */
|
|
4
|
+
declare const RECOBRO: DeviceProtocol<Connection>;
|
|
5
|
+
export { RECOBRO };
|
|
6
|
+
//# sourceMappingURL=protocol.d.ts.map
|
package/lib/typescript/module/src/modules/next/bluetooth/families/clarity-recobro/protocol.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/next/bluetooth/families/clarity-recobro/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAStE,KAAK,UAAU,GAAG,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,KAAK,CAAC,CAAC;AA+BxD,+EAA+E;AAC/E,QAAA,MAAM,OAAO,EAAE,cAAc,CAAC,UAAU,CAKvC,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
|