@neurosity/sdk 6.0.0-next.11
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 +21 -0
- package/README.md +46 -0
- package/dist/browser/neurosity.iife.js +48736 -0
- package/dist/browser/neurosity.js +672 -0
- package/dist/browser/neurosity.js.map +1 -0
- package/dist/cjs/Notion.d.ts +619 -0
- package/dist/cjs/Notion.js +1291 -0
- package/dist/cjs/api/bluetooth/BluetoothClient.d.ts +59 -0
- package/dist/cjs/api/bluetooth/BluetoothClient.js +287 -0
- package/dist/cjs/api/bluetooth/BluetoothTransport.d.ts +32 -0
- package/dist/cjs/api/bluetooth/BluetoothTransport.js +2 -0
- package/dist/cjs/api/bluetooth/constants.d.ts +4 -0
- package/dist/cjs/api/bluetooth/constants.js +9 -0
- package/dist/cjs/api/bluetooth/index.d.ts +4 -0
- package/dist/cjs/api/bluetooth/index.js +20 -0
- package/dist/cjs/api/bluetooth/react-native/ReactNativeTransport.d.ts +65 -0
- package/dist/cjs/api/bluetooth/react-native/ReactNativeTransport.js +386 -0
- package/dist/cjs/api/bluetooth/react-native/types/BleManagerTypes.d.ts +63 -0
- package/dist/cjs/api/bluetooth/react-native/types/BleManagerTypes.js +11 -0
- package/dist/cjs/api/bluetooth/react-native/types/ReactNativeTypes.d.ts +180 -0
- package/dist/cjs/api/bluetooth/react-native/types/ReactNativeTypes.js +10 -0
- package/dist/cjs/api/bluetooth/types/index.d.ts +31 -0
- package/dist/cjs/api/bluetooth/types/index.js +22 -0
- package/dist/cjs/api/bluetooth/utils/create6DigitPin.d.ts +1 -0
- package/dist/cjs/api/bluetooth/utils/create6DigitPin.js +8 -0
- package/dist/cjs/api/bluetooth/utils/csvBufferToEpoch.d.ts +11 -0
- package/dist/cjs/api/bluetooth/utils/csvBufferToEpoch.js +36 -0
- package/dist/cjs/api/bluetooth/utils/encoding.d.ts +3 -0
- package/dist/cjs/api/bluetooth/utils/encoding.js +22 -0
- package/dist/cjs/api/bluetooth/utils/osHasBluetoothSupport.d.ts +2 -0
- package/dist/cjs/api/bluetooth/utils/osHasBluetoothSupport.js +23 -0
- package/dist/cjs/api/bluetooth/utils/stitch.d.ts +5 -0
- package/dist/cjs/api/bluetooth/utils/stitch.js +22 -0
- package/dist/cjs/api/bluetooth/web/WebBluetoothTransport.d.ts +47 -0
- package/dist/cjs/api/bluetooth/web/WebBluetoothTransport.js +412 -0
- package/dist/cjs/api/bluetooth/web/isMaybeWebWorkerContext.d.ts +1 -0
- package/dist/cjs/api/bluetooth/web/isMaybeWebWorkerContext.js +8 -0
- package/dist/cjs/api/bluetooth/web/isWebBluetoothSupported.d.ts +1 -0
- package/dist/cjs/api/bluetooth/web/isWebBluetoothSupported.js +11 -0
- package/dist/cjs/api/firebase/FirebaseApp.d.ts +20 -0
- package/dist/cjs/api/firebase/FirebaseApp.js +70 -0
- package/dist/cjs/api/firebase/FirebaseDevice.d.ts +68 -0
- package/dist/cjs/api/firebase/FirebaseDevice.js +146 -0
- package/dist/cjs/api/firebase/FirebaseUser.d.ts +53 -0
- package/dist/cjs/api/firebase/FirebaseUser.js +434 -0
- package/dist/cjs/api/firebase/config.d.ts +8 -0
- package/dist/cjs/api/firebase/config.js +11 -0
- package/dist/cjs/api/firebase/deviceStore.d.ts +26 -0
- package/dist/cjs/api/firebase/deviceStore.js +191 -0
- package/dist/cjs/api/firebase/index.d.ts +3 -0
- package/dist/cjs/api/firebase/index.js +19 -0
- package/dist/cjs/api/https/config.d.ts +1 -0
- package/dist/cjs/api/https/config.js +4 -0
- package/dist/cjs/api/https/createOAuthURL.d.ts +3 -0
- package/dist/cjs/api/https/createOAuthURL.js +18 -0
- package/dist/cjs/api/https/getOAuthToken.d.ts +3 -0
- package/dist/cjs/api/https/getOAuthToken.js +34 -0
- package/dist/cjs/api/https/utils.d.ts +2 -0
- package/dist/cjs/api/https/utils.js +13 -0
- package/dist/cjs/api/index.d.ts +108 -0
- package/dist/cjs/api/index.js +306 -0
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/index.js +19 -0
- package/dist/cjs/skills/NotionOnDevice.d.ts +7 -0
- package/dist/cjs/skills/NotionOnDevice.js +25 -0
- package/dist/cjs/skills/createSkill.d.ts +7 -0
- package/dist/cjs/skills/createSkill.js +40 -0
- package/dist/cjs/skills/index.d.ts +2 -0
- package/dist/cjs/skills/index.js +18 -0
- package/dist/cjs/subscriptions/SubscriptionManager.d.ts +11 -0
- package/dist/cjs/subscriptions/SubscriptionManager.js +27 -0
- package/dist/cjs/timesync/Timesync.d.ts +20 -0
- package/dist/cjs/timesync/Timesync.js +78 -0
- package/dist/cjs/timesync/index.d.ts +1 -0
- package/dist/cjs/timesync/index.js +17 -0
- package/dist/cjs/types/accelerometer.d.ts +10 -0
- package/dist/cjs/types/accelerometer.js +2 -0
- package/dist/cjs/types/actions.d.ts +16 -0
- package/dist/cjs/types/actions.js +2 -0
- package/dist/cjs/types/awareness.d.ts +1 -0
- package/dist/cjs/types/awareness.js +2 -0
- package/dist/cjs/types/brainwaves.d.ts +26 -0
- package/dist/cjs/types/brainwaves.js +2 -0
- package/dist/cjs/types/calm.d.ts +6 -0
- package/dist/cjs/types/calm.js +2 -0
- package/dist/cjs/types/client.d.ts +22 -0
- package/dist/cjs/types/client.js +2 -0
- package/dist/cjs/types/credentials.d.ts +12 -0
- package/dist/cjs/types/credentials.js +2 -0
- package/dist/cjs/types/deviceInfo.d.ts +18 -0
- package/dist/cjs/types/deviceInfo.js +2 -0
- package/dist/cjs/types/epoch.d.ts +12 -0
- package/dist/cjs/types/epoch.js +2 -0
- package/dist/cjs/types/experiment.d.ts +9 -0
- package/dist/cjs/types/experiment.js +2 -0
- package/dist/cjs/types/focus.d.ts +6 -0
- package/dist/cjs/types/focus.js +2 -0
- package/dist/cjs/types/hapticEffects.d.ts +125 -0
- package/dist/cjs/types/hapticEffects.js +2 -0
- package/dist/cjs/types/kinesis.d.ts +6 -0
- package/dist/cjs/types/kinesis.js +2 -0
- package/dist/cjs/types/marker.d.ts +7 -0
- package/dist/cjs/types/marker.js +2 -0
- package/dist/cjs/types/metrics.d.ts +21 -0
- package/dist/cjs/types/metrics.js +2 -0
- package/dist/cjs/types/oauth.d.ts +20 -0
- package/dist/cjs/types/oauth.js +2 -0
- package/dist/cjs/types/options.d.ts +51 -0
- package/dist/cjs/types/options.js +2 -0
- package/dist/cjs/types/sample.d.ts +15 -0
- package/dist/cjs/types/sample.js +2 -0
- package/dist/cjs/types/settings.d.ts +13 -0
- package/dist/cjs/types/settings.js +2 -0
- package/dist/cjs/types/signalQuality.d.ts +13 -0
- package/dist/cjs/types/signalQuality.js +2 -0
- package/dist/cjs/types/skill.d.ts +68 -0
- package/dist/cjs/types/skill.js +2 -0
- package/dist/cjs/types/status.d.ts +26 -0
- package/dist/cjs/types/status.js +22 -0
- package/dist/cjs/types/streaming.d.ts +15 -0
- package/dist/cjs/types/streaming.js +20 -0
- package/dist/cjs/types/subscriptions.d.ts +23 -0
- package/dist/cjs/types/subscriptions.js +2 -0
- package/dist/cjs/types/training.d.ts +19 -0
- package/dist/cjs/types/training.js +2 -0
- package/dist/cjs/types/user.d.ts +12 -0
- package/dist/cjs/types/user.js +2 -0
- package/dist/cjs/utils/errors.d.ts +5 -0
- package/dist/cjs/utils/errors.js +17 -0
- package/dist/cjs/utils/filterInternalKeys.d.ts +3 -0
- package/dist/cjs/utils/filterInternalKeys.js +21 -0
- package/dist/cjs/utils/hapticEffects.d.ts +123 -0
- package/dist/cjs/utils/hapticEffects.js +130 -0
- package/dist/cjs/utils/heartbeat.d.ts +4 -0
- package/dist/cjs/utils/heartbeat.js +34 -0
- package/dist/cjs/utils/is-node.d.ts +1 -0
- package/dist/cjs/utils/is-node.js +9 -0
- package/dist/cjs/utils/metrics.d.ts +1 -0
- package/dist/cjs/utils/metrics.js +56 -0
- package/dist/cjs/utils/oauth.d.ts +9 -0
- package/dist/cjs/utils/oauth.js +92 -0
- package/dist/cjs/utils/pick.d.ts +1 -0
- package/dist/cjs/utils/pick.js +5 -0
- package/dist/cjs/utils/pipes.d.ts +46 -0
- package/dist/cjs/utils/pipes.js +71 -0
- package/dist/cjs/utils/platform.d.ts +30 -0
- package/dist/cjs/utils/platform.js +47 -0
- package/dist/cjs/utils/subscription.d.ts +6 -0
- package/dist/cjs/utils/subscription.js +55 -0
- package/dist/cjs/utils/transferDevice.d.ts +9 -0
- package/dist/cjs/utils/transferDevice.js +2 -0
- package/dist/cjs/utils/whileOnline.d.ts +8 -0
- package/dist/cjs/utils/whileOnline.js +15 -0
- package/dist/electron/index.js +92 -0
- package/dist/electron/index.js.map +1 -0
- package/dist/esm/Notion.d.ts +619 -0
- package/dist/esm/Notion.js +1260 -0
- package/dist/esm/api/bluetooth/BluetoothClient.d.ts +59 -0
- package/dist/esm/api/bluetooth/BluetoothClient.js +283 -0
- package/dist/esm/api/bluetooth/BluetoothTransport.d.ts +32 -0
- package/dist/esm/api/bluetooth/BluetoothTransport.js +1 -0
- package/dist/esm/api/bluetooth/constants.d.ts +4 -0
- package/dist/esm/api/bluetooth/constants.js +6 -0
- package/dist/esm/api/bluetooth/index.d.ts +4 -0
- package/dist/esm/api/bluetooth/index.js +4 -0
- package/dist/esm/api/bluetooth/react-native/ReactNativeTransport.d.ts +65 -0
- package/dist/esm/api/bluetooth/react-native/ReactNativeTransport.js +382 -0
- package/dist/esm/api/bluetooth/react-native/types/BleManagerTypes.d.ts +63 -0
- package/dist/esm/api/bluetooth/react-native/types/BleManagerTypes.js +8 -0
- package/dist/esm/api/bluetooth/react-native/types/ReactNativeTypes.d.ts +180 -0
- package/dist/esm/api/bluetooth/react-native/types/ReactNativeTypes.js +9 -0
- package/dist/esm/api/bluetooth/types/index.d.ts +31 -0
- package/dist/esm/api/bluetooth/types/index.js +19 -0
- package/dist/esm/api/bluetooth/utils/create6DigitPin.d.ts +1 -0
- package/dist/esm/api/bluetooth/utils/create6DigitPin.js +4 -0
- package/dist/esm/api/bluetooth/utils/csvBufferToEpoch.d.ts +11 -0
- package/dist/esm/api/bluetooth/utils/csvBufferToEpoch.js +31 -0
- package/dist/esm/api/bluetooth/utils/encoding.d.ts +3 -0
- package/dist/esm/api/bluetooth/utils/encoding.js +17 -0
- package/dist/esm/api/bluetooth/utils/osHasBluetoothSupport.d.ts +2 -0
- package/dist/esm/api/bluetooth/utils/osHasBluetoothSupport.js +16 -0
- package/dist/esm/api/bluetooth/utils/stitch.d.ts +5 -0
- package/dist/esm/api/bluetooth/utils/stitch.js +18 -0
- package/dist/esm/api/bluetooth/web/WebBluetoothTransport.d.ts +47 -0
- package/dist/esm/api/bluetooth/web/WebBluetoothTransport.js +408 -0
- package/dist/esm/api/bluetooth/web/isMaybeWebWorkerContext.d.ts +1 -0
- package/dist/esm/api/bluetooth/web/isMaybeWebWorkerContext.js +4 -0
- package/dist/esm/api/bluetooth/web/isWebBluetoothSupported.d.ts +1 -0
- package/dist/esm/api/bluetooth/web/isWebBluetoothSupported.js +7 -0
- package/dist/esm/api/firebase/FirebaseApp.d.ts +20 -0
- package/dist/esm/api/firebase/FirebaseApp.js +63 -0
- package/dist/esm/api/firebase/FirebaseDevice.d.ts +68 -0
- package/dist/esm/api/firebase/FirebaseDevice.js +139 -0
- package/dist/esm/api/firebase/FirebaseUser.d.ts +53 -0
- package/dist/esm/api/firebase/FirebaseUser.js +426 -0
- package/dist/esm/api/firebase/config.d.ts +8 -0
- package/dist/esm/api/firebase/config.js +8 -0
- package/dist/esm/api/firebase/deviceStore.d.ts +26 -0
- package/dist/esm/api/firebase/deviceStore.js +184 -0
- package/dist/esm/api/firebase/index.d.ts +3 -0
- package/dist/esm/api/firebase/index.js +3 -0
- package/dist/esm/api/https/config.d.ts +1 -0
- package/dist/esm/api/https/config.js +1 -0
- package/dist/esm/api/https/createOAuthURL.d.ts +3 -0
- package/dist/esm/api/https/createOAuthURL.js +11 -0
- package/dist/esm/api/https/getOAuthToken.d.ts +3 -0
- package/dist/esm/api/https/getOAuthToken.js +27 -0
- package/dist/esm/api/https/utils.d.ts +2 -0
- package/dist/esm/api/https/utils.js +9 -0
- package/dist/esm/api/index.d.ts +108 -0
- package/dist/esm/api/index.js +299 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/neurosity.mjs +48722 -0
- package/dist/esm/skills/NotionOnDevice.d.ts +7 -0
- package/dist/esm/skills/NotionOnDevice.js +21 -0
- package/dist/esm/skills/createSkill.d.ts +7 -0
- package/dist/esm/skills/createSkill.js +36 -0
- package/dist/esm/skills/index.d.ts +2 -0
- package/dist/esm/skills/index.js +2 -0
- package/dist/esm/subscriptions/SubscriptionManager.d.ts +11 -0
- package/dist/esm/subscriptions/SubscriptionManager.js +23 -0
- package/dist/esm/timesync/Timesync.d.ts +20 -0
- package/dist/esm/timesync/Timesync.js +71 -0
- package/dist/esm/timesync/index.d.ts +1 -0
- package/dist/esm/timesync/index.js +1 -0
- package/dist/esm/types/accelerometer.d.ts +10 -0
- package/dist/esm/types/accelerometer.js +1 -0
- package/dist/esm/types/actions.d.ts +16 -0
- package/dist/esm/types/actions.js +1 -0
- package/dist/esm/types/awareness.d.ts +1 -0
- package/dist/esm/types/awareness.js +1 -0
- package/dist/esm/types/brainwaves.d.ts +26 -0
- package/dist/esm/types/brainwaves.js +1 -0
- package/dist/esm/types/calm.d.ts +6 -0
- package/dist/esm/types/calm.js +1 -0
- package/dist/esm/types/client.d.ts +22 -0
- package/dist/esm/types/client.js +1 -0
- package/dist/esm/types/credentials.d.ts +12 -0
- package/dist/esm/types/credentials.js +1 -0
- package/dist/esm/types/deviceInfo.d.ts +18 -0
- package/dist/esm/types/deviceInfo.js +1 -0
- package/dist/esm/types/epoch.d.ts +12 -0
- package/dist/esm/types/epoch.js +1 -0
- package/dist/esm/types/experiment.d.ts +9 -0
- package/dist/esm/types/experiment.js +1 -0
- package/dist/esm/types/focus.d.ts +6 -0
- package/dist/esm/types/focus.js +1 -0
- package/dist/esm/types/hapticEffects.d.ts +125 -0
- package/dist/esm/types/hapticEffects.js +1 -0
- package/dist/esm/types/kinesis.d.ts +6 -0
- package/dist/esm/types/kinesis.js +1 -0
- package/dist/esm/types/marker.d.ts +7 -0
- package/dist/esm/types/marker.js +1 -0
- package/dist/esm/types/metrics.d.ts +21 -0
- package/dist/esm/types/metrics.js +1 -0
- package/dist/esm/types/oauth.d.ts +20 -0
- package/dist/esm/types/oauth.js +1 -0
- package/dist/esm/types/options.d.ts +51 -0
- package/dist/esm/types/options.js +1 -0
- package/dist/esm/types/sample.d.ts +15 -0
- package/dist/esm/types/sample.js +1 -0
- package/dist/esm/types/settings.d.ts +13 -0
- package/dist/esm/types/settings.js +1 -0
- package/dist/esm/types/signalQuality.d.ts +13 -0
- package/dist/esm/types/signalQuality.js +1 -0
- package/dist/esm/types/skill.d.ts +68 -0
- package/dist/esm/types/skill.js +1 -0
- package/dist/esm/types/status.d.ts +26 -0
- package/dist/esm/types/status.js +19 -0
- package/dist/esm/types/streaming.d.ts +15 -0
- package/dist/esm/types/streaming.js +17 -0
- package/dist/esm/types/subscriptions.d.ts +23 -0
- package/dist/esm/types/subscriptions.js +1 -0
- package/dist/esm/types/training.d.ts +19 -0
- package/dist/esm/types/training.js +1 -0
- package/dist/esm/types/user.d.ts +12 -0
- package/dist/esm/types/user.js +1 -0
- package/dist/esm/utils/errors.d.ts +5 -0
- package/dist/esm/utils/errors.js +11 -0
- package/dist/esm/utils/filterInternalKeys.d.ts +3 -0
- package/dist/esm/utils/filterInternalKeys.js +17 -0
- package/dist/esm/utils/hapticEffects.d.ts +123 -0
- package/dist/esm/utils/hapticEffects.js +125 -0
- package/dist/esm/utils/heartbeat.d.ts +4 -0
- package/dist/esm/utils/heartbeat.js +29 -0
- package/dist/esm/utils/is-node.d.ts +1 -0
- package/dist/esm/utils/is-node.js +5 -0
- package/dist/esm/utils/metrics.d.ts +1 -0
- package/dist/esm/utils/metrics.js +52 -0
- package/dist/esm/utils/oauth.d.ts +9 -0
- package/dist/esm/utils/oauth.js +64 -0
- package/dist/esm/utils/pick.d.ts +1 -0
- package/dist/esm/utils/pick.js +1 -0
- package/dist/esm/utils/pipes.d.ts +46 -0
- package/dist/esm/utils/pipes.js +65 -0
- package/dist/esm/utils/platform.d.ts +30 -0
- package/dist/esm/utils/platform.js +41 -0
- package/dist/esm/utils/subscription.d.ts +6 -0
- package/dist/esm/utils/subscription.js +24 -0
- package/dist/esm/utils/transferDevice.d.ts +9 -0
- package/dist/esm/utils/transferDevice.js +1 -0
- package/dist/esm/utils/whileOnline.d.ts +8 -0
- package/dist/esm/utils/whileOnline.js +11 -0
- package/dist/examples/auth.html +32 -0
- package/dist/examples/cloud.html +17 -0
- package/dist/examples/index.html +1 -0
- package/dist/examples/neurosity.iife.js +48736 -0
- package/dist/examples/neurosity.js +672 -0
- package/dist/examples/neurosity.mjs +48722 -0
- package/dist/examples/training.html +49 -0
- package/package.json +78 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Skill } from "./skill";
|
|
2
|
+
import { SubscriptionManager } from "../subscriptions/SubscriptionManager";
|
|
3
|
+
import { BluetoothTransport } from "../api/bluetooth/BluetoothClient";
|
|
4
|
+
import { STREAMING_MODE } from "./streaming";
|
|
5
|
+
export interface SDKOptions {
|
|
6
|
+
deviceId?: string;
|
|
7
|
+
autoSelectDevice?: boolean;
|
|
8
|
+
timesync?: boolean;
|
|
9
|
+
bluetoothTransport?: BluetoothTransport;
|
|
10
|
+
streamingMode?: STREAMING_MODE;
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
emulator?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
emulatorHost?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
emulatorAuthPort?: number;
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
emulatorDatabasePort?: number;
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
emulatorOptions?: {
|
|
31
|
+
mockUserToken?: any;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
*/
|
|
36
|
+
emulatorFunctionsPort?: number;
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
*/
|
|
40
|
+
emulatorFirestorePort?: number;
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
skill?: Skill;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
export interface SDKDependencies {
|
|
50
|
+
subscriptionManager: SubscriptionManager;
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Marker } from "./marker";
|
|
2
|
+
/**
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
export declare type Sample = {
|
|
6
|
+
data: number[];
|
|
7
|
+
timestamp: number;
|
|
8
|
+
count?: number;
|
|
9
|
+
marker?: Marker;
|
|
10
|
+
info?: any;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare type CSVSample = number[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare type ChannelQuality = {
|
|
2
|
+
standardDeviation: number;
|
|
3
|
+
status: "great" | "good" | "bad" | "noContact";
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Channel names for the Crown are `CP3, C3, F5, PO3, PO4, F6, C4, and CP4`
|
|
7
|
+
* These channels may change in future versions
|
|
8
|
+
* {@link ChannelQuality}
|
|
9
|
+
*/
|
|
10
|
+
export interface SignalQuality {
|
|
11
|
+
[channelName: string]: ChannelQuality;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
/**
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
declare type SkillProps = {
|
|
6
|
+
[key: string]: string | number | boolean;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export interface Skill {
|
|
12
|
+
id: string;
|
|
13
|
+
bundleId: string;
|
|
14
|
+
spec: string;
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
props?: SkillProps;
|
|
18
|
+
organization?: string;
|
|
19
|
+
metrics: string[];
|
|
20
|
+
userId: string;
|
|
21
|
+
timestamp: number;
|
|
22
|
+
status: string;
|
|
23
|
+
thumbnail: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
export interface DeviceSkill {
|
|
29
|
+
id: string;
|
|
30
|
+
bundleId: string;
|
|
31
|
+
installedDate: number;
|
|
32
|
+
manifest: {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
};
|
|
35
|
+
status: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
*/
|
|
40
|
+
declare type SkillMetric = {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*/
|
|
46
|
+
interface SkillMetricNext {
|
|
47
|
+
next(value: SkillMetric): void;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
52
|
+
export interface SkillInstance {
|
|
53
|
+
props?: SkillProps;
|
|
54
|
+
metric(metric: string): Observable<SkillMetric> | SkillMetricNext;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @hidden
|
|
58
|
+
*/
|
|
59
|
+
export interface SkillSubscription {
|
|
60
|
+
unsubscribe(): void;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
*/
|
|
65
|
+
export interface SkillsClient {
|
|
66
|
+
get: (id: string) => Promise<DeviceSkill>;
|
|
67
|
+
}
|
|
68
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
*/
|
|
4
|
+
export declare enum STATUS {
|
|
5
|
+
ONLINE = "online",
|
|
6
|
+
OFFLINE = "offline",
|
|
7
|
+
UPDATING = "updating",
|
|
8
|
+
BOOTING = "booting",
|
|
9
|
+
SHUTTING_OFF = "shuttingOff"
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare enum SLEEP_MODE_REASON {
|
|
15
|
+
UPDATING = "updating",
|
|
16
|
+
CHARGING = "charging"
|
|
17
|
+
}
|
|
18
|
+
export interface DeviceStatus {
|
|
19
|
+
battery: number;
|
|
20
|
+
charging: boolean;
|
|
21
|
+
state: STATUS;
|
|
22
|
+
sleepMode: boolean;
|
|
23
|
+
sleepModeReason: SLEEP_MODE_REASON | null;
|
|
24
|
+
lastHeartbeat: number;
|
|
25
|
+
ssid: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
*/
|
|
4
|
+
export var STATUS;
|
|
5
|
+
(function (STATUS) {
|
|
6
|
+
STATUS["ONLINE"] = "online";
|
|
7
|
+
STATUS["OFFLINE"] = "offline";
|
|
8
|
+
STATUS["UPDATING"] = "updating";
|
|
9
|
+
STATUS["BOOTING"] = "booting";
|
|
10
|
+
STATUS["SHUTTING_OFF"] = "shuttingOff";
|
|
11
|
+
})(STATUS || (STATUS = {}));
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export var SLEEP_MODE_REASON;
|
|
16
|
+
(function (SLEEP_MODE_REASON) {
|
|
17
|
+
SLEEP_MODE_REASON["UPDATING"] = "updating";
|
|
18
|
+
SLEEP_MODE_REASON["CHARGING"] = "charging";
|
|
19
|
+
})(SLEEP_MODE_REASON || (SLEEP_MODE_REASON = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
*/
|
|
4
|
+
export declare enum STREAMING_TYPE {
|
|
5
|
+
WIFI = "wifi",
|
|
6
|
+
BLUETOOTH = "bluetooth"
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare enum STREAMING_MODE {
|
|
12
|
+
WIFI_ONLY = "wifi-only",
|
|
13
|
+
WIFI_WITH_BLUETOOTH_FALLBACK = "wifi-with-bluetooth-fallback",
|
|
14
|
+
BLUETOOTH_WITH_WIFI_FALLBACK = "bluetooth-with-wifi-fallback"
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
*/
|
|
4
|
+
export var STREAMING_TYPE;
|
|
5
|
+
(function (STREAMING_TYPE) {
|
|
6
|
+
STREAMING_TYPE["WIFI"] = "wifi";
|
|
7
|
+
STREAMING_TYPE["BLUETOOTH"] = "bluetooth";
|
|
8
|
+
})(STREAMING_TYPE || (STREAMING_TYPE = {}));
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export var STREAMING_MODE;
|
|
13
|
+
(function (STREAMING_MODE) {
|
|
14
|
+
STREAMING_MODE["WIFI_ONLY"] = "wifi-only";
|
|
15
|
+
STREAMING_MODE["WIFI_WITH_BLUETOOTH_FALLBACK"] = "wifi-with-bluetooth-fallback";
|
|
16
|
+
STREAMING_MODE["BLUETOOTH_WITH_WIFI_FALLBACK"] = "bluetooth-with-wifi-fallback";
|
|
17
|
+
})(STREAMING_MODE || (STREAMING_MODE = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
*/
|
|
4
|
+
export interface PendingSubscription {
|
|
5
|
+
metric: string;
|
|
6
|
+
labels: string[];
|
|
7
|
+
atomic: boolean;
|
|
8
|
+
serverType?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface Subscription extends PendingSubscription {
|
|
14
|
+
id: string;
|
|
15
|
+
clientId: string;
|
|
16
|
+
serverType: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export interface Subscriptions {
|
|
22
|
+
[id: string]: Subscription;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
*/
|
|
4
|
+
export interface TrainingRecording {
|
|
5
|
+
experimentId: string;
|
|
6
|
+
metric: string;
|
|
7
|
+
label: string;
|
|
8
|
+
fit?: boolean;
|
|
9
|
+
baseline?: boolean;
|
|
10
|
+
timestamp?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export interface Training {
|
|
16
|
+
record(training: TrainingRecording): void;
|
|
17
|
+
stop(training: TrainingRecording): void;
|
|
18
|
+
stopAll(): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const prefix = "Neurosity SDK: ";
|
|
2
|
+
export declare const mustSelectDevice: Error;
|
|
3
|
+
export declare const metricNotSupportedByModel: (metric: string, modelVersion: string) => Error;
|
|
4
|
+
export declare const locationNotFound: (location: string, modelVersion: string) => Error;
|
|
5
|
+
export declare const exceededMaxItems: (maxItems: number) => Error;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const prefix = "Neurosity SDK: ";
|
|
2
|
+
export const mustSelectDevice = new Error(`${prefix}A device must be selected. Make sure to call "neurosity.selectDevice()"`);
|
|
3
|
+
export const metricNotSupportedByModel = (metric, modelVersion) => {
|
|
4
|
+
return new Error(`${prefix}${metric} not supported on model version ${modelVersion}. See docs.neurosity.co for more info.`);
|
|
5
|
+
};
|
|
6
|
+
export const locationNotFound = (location, modelVersion) => {
|
|
7
|
+
return new Error(`${prefix}${location} location not supported on model version ${modelVersion}. Check spelling or see docs.neurosity.co for more info.`);
|
|
8
|
+
};
|
|
9
|
+
export const exceededMaxItems = (maxItems) => {
|
|
10
|
+
return new Error(`${prefix}Maximum items in array is ${maxItems}`);
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { pipe } from "rxjs";
|
|
2
|
+
import { map } from "rxjs/operators";
|
|
3
|
+
export function filterInternalKeys() {
|
|
4
|
+
return pipe(map((status) => {
|
|
5
|
+
if (!status) {
|
|
6
|
+
return status;
|
|
7
|
+
}
|
|
8
|
+
// remove internal properties that start with "__"
|
|
9
|
+
const filteredStatus = Object.entries(status).reduce((acc, [key, value]) => {
|
|
10
|
+
if (!key.startsWith("__")) {
|
|
11
|
+
acc[key] = value;
|
|
12
|
+
}
|
|
13
|
+
return acc;
|
|
14
|
+
}, {});
|
|
15
|
+
return filteredStatus;
|
|
16
|
+
}));
|
|
17
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
export declare const strongClick100 = "strongClick100";
|
|
2
|
+
export declare const strongClick60 = "strongClick60";
|
|
3
|
+
export declare const strongClick30 = "strongClick30";
|
|
4
|
+
export declare const sharpClick100 = "sharpClick100";
|
|
5
|
+
export declare const sharpClick60 = "sharpClick60";
|
|
6
|
+
export declare const sharpClick30 = "sharpClick30";
|
|
7
|
+
export declare const softBump100 = "softBump100";
|
|
8
|
+
export declare const softBump60 = "softBump60";
|
|
9
|
+
export declare const softBump30 = "softBump30";
|
|
10
|
+
export declare const doubleClick100 = "doubleClick100";
|
|
11
|
+
export declare const doubleClick60 = "doubleClick60";
|
|
12
|
+
export declare const tripleClick100 = "tripleClick100";
|
|
13
|
+
export declare const softFuzz60 = "softFuzz60";
|
|
14
|
+
export declare const strongBuzz100 = "strongBuzz100";
|
|
15
|
+
export declare const alert750ms = "alert750ms";
|
|
16
|
+
export declare const alert1000ms = "alert1000ms";
|
|
17
|
+
export declare const strongClick1_100 = "strongClick1_100";
|
|
18
|
+
export declare const strongClick2_80 = "strongClick2_80";
|
|
19
|
+
export declare const strongClick3_60 = "strongClick3_60";
|
|
20
|
+
export declare const strongClick4_30 = "strongClick4_30";
|
|
21
|
+
export declare const mediumClick1_100 = "mediumClick1_100";
|
|
22
|
+
export declare const mediumClick2_80 = "mediumClick2_80";
|
|
23
|
+
export declare const mediumClick3_60 = "mediumClick3_60";
|
|
24
|
+
export declare const sharpTick1_100 = "sharpTick1_100";
|
|
25
|
+
export declare const sharpTick2_80 = "sharpTick2_80";
|
|
26
|
+
export declare const sharpTick3_60 = "sharpTick3_60";
|
|
27
|
+
export declare const shortDoubleClickStrong1_100 = "shortDoubleClickStrong1_100";
|
|
28
|
+
export declare const shortDoubleClickStrong2_80 = "shortDoubleClickStrong2_80";
|
|
29
|
+
export declare const shortDoubleClickStrong3_60 = "shortDoubleClickStrong3_60";
|
|
30
|
+
export declare const shortDoubleClickStrong4_30 = "shortDoubleClickStrong4_30";
|
|
31
|
+
export declare const shortDoubleClickMedium1_100 = "shortDoubleClickMedium1_100";
|
|
32
|
+
export declare const shortDoubleClickMedium2_80 = "shortDoubleClickMedium2_80";
|
|
33
|
+
export declare const shortDoubleClickMedium3_60 = "shortDoubleClickMedium3_60";
|
|
34
|
+
export declare const shortDoubleSharpTick1_100 = "shortDoubleSharpTick1_100";
|
|
35
|
+
export declare const shortDoubleSharpTick2_80 = "shortDoubleSharpTick2_80";
|
|
36
|
+
export declare const shortDoubleSharpTick3_60 = "shortDoubleSharpTick3_60";
|
|
37
|
+
export declare const longDoubleSharpClickStrong1_100 = "longDoubleSharpClickStrong1_100";
|
|
38
|
+
export declare const longDoubleSharpClickStrong2_80 = "longDoubleSharpClickStrong2_80";
|
|
39
|
+
export declare const longDoubleSharpClickStrong3_60 = "longDoubleSharpClickStrong3_60";
|
|
40
|
+
export declare const longDoubleSharpClickStrong4_30 = "longDoubleSharpClickStrong4_30";
|
|
41
|
+
export declare const longDoubleSharpClickMedium1_100 = "longDoubleSharpClickMedium1_100";
|
|
42
|
+
export declare const longDoubleSharpClickMedium2_80 = "longDoubleSharpClickMedium2_80";
|
|
43
|
+
export declare const longDoubleSharpClickMedium3_60 = "longDoubleSharpClickMedium3_60";
|
|
44
|
+
export declare const longDoubleSharpTick1_100 = "longDoubleSharpTick1_100";
|
|
45
|
+
export declare const longDoubleSharpTick2_80 = "longDoubleSharpTick2_80";
|
|
46
|
+
export declare const longDoubleSharpTick3_60 = "longDoubleSharpTick3_60";
|
|
47
|
+
export declare const buzz1_100 = "buzz1_100";
|
|
48
|
+
export declare const buzz2_80 = "buzz2_80";
|
|
49
|
+
export declare const buzz3_60 = "buzz3_60";
|
|
50
|
+
export declare const buzz4_40 = "buzz4_40";
|
|
51
|
+
export declare const buzz5_20 = "buzz5_20";
|
|
52
|
+
export declare const pulsingStong1_100 = "pulsingStong1_100";
|
|
53
|
+
export declare const pulsingStong2_60 = "pulsingStong2_60";
|
|
54
|
+
export declare const pulsingMedium1_100 = "pulsingMedium1_100";
|
|
55
|
+
export declare const pulsingMedium2_60 = "pulsingMedium2_60";
|
|
56
|
+
export declare const pulsingSharp1_100 = "pulsingSharp1_100";
|
|
57
|
+
export declare const pulsingSharp2_60 = "pulsingSharp2_60";
|
|
58
|
+
export declare const transistionClick1_100 = "transistionClick1_100";
|
|
59
|
+
export declare const transistionClick2_80 = "transistionClick2_80";
|
|
60
|
+
export declare const transistionClick3_60 = "transistionClick3_60";
|
|
61
|
+
export declare const transistionClick4_40 = "transistionClick4_40";
|
|
62
|
+
export declare const transistionClick5_20 = "transistionClick5_20";
|
|
63
|
+
export declare const transistionClick6_10 = "transistionClick6_10";
|
|
64
|
+
export declare const transistionHum1_100 = "transistionHum1_100";
|
|
65
|
+
export declare const transistionHum2_80 = "transistionHum2_80";
|
|
66
|
+
export declare const transistionHum3_60 = "transistionHum3_60";
|
|
67
|
+
export declare const transistionHum4_40 = "transistionHum4_40";
|
|
68
|
+
export declare const transistionHum5_20 = "transistionHum5_20";
|
|
69
|
+
export declare const transistionHum6_10 = "transistionHum6_10";
|
|
70
|
+
export declare const transitionRampDownLongSmooth1_100_to_0 = "transitionRampDownLongSmooth1_100_to_0";
|
|
71
|
+
export declare const transitionRampDownLongSmooth2_100_to_0 = "transitionRampDownLongSmooth2_100_to_0";
|
|
72
|
+
export declare const transitionRampDownMediumSmooth1_100_to_0 = "transitionRampDownMediumSmooth1_100_to_0";
|
|
73
|
+
export declare const transitionRampDownMediumSmooth2_100_to_0 = "transitionRampDownMediumSmooth2_100_to_0";
|
|
74
|
+
export declare const transitionRampDownShortSmooth1_100_to_0 = "transitionRampDownShortSmooth1_100_to_0";
|
|
75
|
+
export declare const transitionRampDownShortSmooth2_100_to_0 = "transitionRampDownShortSmooth2_100_to_0";
|
|
76
|
+
export declare const transitionRampDownLongSharp1_100_to_0 = "transitionRampDownLongSharp1_100_to_0";
|
|
77
|
+
export declare const transitionRampDownLongSharp2_100_to_0 = "transitionRampDownLongSharp2_100_to_0";
|
|
78
|
+
export declare const transitionRampDownLongMedium1_100_to_0 = "transitionRampDownLongMedium1_100_to_0";
|
|
79
|
+
export declare const transitionRampDownLongMedium2_100_to_0 = "transitionRampDownLongMedium2_100_to_0";
|
|
80
|
+
export declare const transitionRampDownShortSharp1_100_to_0 = "transitionRampDownShortSharp1_100_to_0";
|
|
81
|
+
export declare const transitionRampDownShortSharp2_100_to_0 = "transitionRampDownShortSharp2_100_to_0";
|
|
82
|
+
export declare const transitionRampUpLongSmooth1_0_to_100 = "transitionRampUpLongSmooth1_0_to_100";
|
|
83
|
+
export declare const transitionRampUpLongSmooth2_0_to_100 = "transitionRampUpLongSmooth2_0_to_100";
|
|
84
|
+
export declare const transitionRampUpMediumSmooth1_0_to_100 = "transitionRampUpMediumSmooth1_0_to_100";
|
|
85
|
+
export declare const transitionRampUpMediumSmooth2_0_to_100 = "transitionRampUpMediumSmooth2_0_to_100";
|
|
86
|
+
export declare const transitionRampUpShortSmooth1_0_to_100 = "transitionRampUpShortSmooth1_0_to_100";
|
|
87
|
+
export declare const transitionRampUpShortSmooth2_0_to_100 = "transitionRampUpShortSmooth2_0_to_100";
|
|
88
|
+
export declare const transitionRampUpLongSharp1_0_to_100 = "transitionRampUpLongSharp1_0_to_100";
|
|
89
|
+
export declare const transitionRampUpLongSharp2_0_to_100 = "transitionRampUpLongSharp2_0_to_100";
|
|
90
|
+
export declare const transitionRampUpMediumSharp1_0_to_100 = "transitionRampUpMediumSharp1_0_to_100";
|
|
91
|
+
export declare const transitionRampUpMediumSharp2_0_to_100 = "transitionRampUpMediumSharp2_0_to_100";
|
|
92
|
+
export declare const transitionRampUpShortSharp1_0_to_100 = "transitionRampUpShortSharp1_0_to_100";
|
|
93
|
+
export declare const transitionRampUpShortSharp2_0_to_100 = "transitionRampUpShortSharp2_0_to_100";
|
|
94
|
+
export declare const transitionRampDownLongSmooth1_50_to_0 = "transitionRampDownLongSmooth1_50_to_0";
|
|
95
|
+
export declare const transitionRampDownLongSmooth2_50_to_0 = "transitionRampDownLongSmooth2_50_to_0";
|
|
96
|
+
export declare const transitionRampDownMediumSmooth1_50_to_0 = "transitionRampDownMediumSmooth1_50_to_0";
|
|
97
|
+
export declare const transitionRampDownMediumSmooth2_50_to_0 = "transitionRampDownMediumSmooth2_50_to_0";
|
|
98
|
+
export declare const transitionRampDownShortSmooth1_50_to_0 = "transitionRampDownShortSmooth1_50_to_0";
|
|
99
|
+
export declare const transitionRampDownShortSmooth2_50_to_0 = "transitionRampDownShortSmooth2_50_to_0";
|
|
100
|
+
export declare const transitionRampDownLongSharp1_50_to_0 = "transitionRampDownLongSharp1_50_to_0";
|
|
101
|
+
export declare const transitionRampDownLongSharp2_50_to_0 = "transitionRampDownLongSharp2_50_to_0";
|
|
102
|
+
export declare const transitionRampDownMediumSharp1_50_to_0 = "transitionRampDownMediumSharp1_50_to_0";
|
|
103
|
+
export declare const transitionRampDownMediumSharp2_50_to_0 = "transitionRampDownMediumSharp2_50_to_0";
|
|
104
|
+
export declare const transitionRampDownShortSharp1_50_to_0 = "transitionRampDownShortSharp1_50_to_0";
|
|
105
|
+
export declare const transitionRampDownShortSharp2_50_to_0 = "transitionRampDownShortSharp2_50_to_0";
|
|
106
|
+
export declare const transitionRampUpLongSmooth1_0_to_50 = "transitionRampUpLongSmooth1_0_to_50";
|
|
107
|
+
export declare const transitionRampUpLongSmooth2_0_to_50 = "transitionRampUpLongSmooth2_0_to_50";
|
|
108
|
+
export declare const transitionRampUpMediumSmooth1_0_to_50 = "transitionRampUpMediumSmooth1_0_to_50";
|
|
109
|
+
export declare const transitionRampUpMediumSmooth2_0_to_50 = "transitionRampUpMediumSmooth2_0_to_50";
|
|
110
|
+
export declare const transitionRampUpShortSmooth1_0_to_50 = "transitionRampUpShortSmooth1_0_to_50";
|
|
111
|
+
export declare const transitionRampUpShortSmooth2_0_to_50 = "transitionRampUpShortSmooth2_0_to_50";
|
|
112
|
+
export declare const transitionRampUpLongSharp1_0_to_50 = "transitionRampUpLongSharp1_0_to_50";
|
|
113
|
+
export declare const transitionRampUpLongSharp2_0_to_50 = "transitionRampUpLongSharp2_0_to_50";
|
|
114
|
+
export declare const transitionRampUpMediumSharp1_0_to_50 = "transitionRampUpMediumSharp1_0_to_50";
|
|
115
|
+
export declare const transitionRampUpMediumSharp2_0_to_50 = "transitionRampUpMediumSharp2_0_to_50";
|
|
116
|
+
export declare const transitionRampUpShortSharp1_0_to_50 = "transitionRampUpShortSharp1_0_to_50";
|
|
117
|
+
export declare const transitionRampUpShortSharp2_0_to_50 = "transitionRampUpShortSharp2_0_to_50";
|
|
118
|
+
export declare const longBuzzForProgrammaticStopping_100 = "longBuzzForProgrammaticStopping_100";
|
|
119
|
+
export declare const smoothHum1_50 = "smoothHum1_50";
|
|
120
|
+
export declare const smoothHum2_40 = "smoothHum2_40";
|
|
121
|
+
export declare const smoothHum3_30 = "smoothHum3_30";
|
|
122
|
+
export declare const smoothHum4_20 = "smoothHum4_20";
|
|
123
|
+
export declare const smoothHum5_10 = "smoothHum5_10";
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// All 127ish codes here:
|
|
2
|
+
/// https://cdn-learn.adafruit.com/downloads/pdf/adafruit-drv2605-haptic-controller-breakout.pdf
|
|
3
|
+
export const strongClick100 = "strongClick100";
|
|
4
|
+
export const strongClick60 = "strongClick60";
|
|
5
|
+
export const strongClick30 = "strongClick30";
|
|
6
|
+
export const sharpClick100 = "sharpClick100";
|
|
7
|
+
export const sharpClick60 = "sharpClick60";
|
|
8
|
+
export const sharpClick30 = "sharpClick30";
|
|
9
|
+
export const softBump100 = "softBump100";
|
|
10
|
+
export const softBump60 = "softBump60";
|
|
11
|
+
export const softBump30 = "softBump30";
|
|
12
|
+
export const doubleClick100 = "doubleClick100";
|
|
13
|
+
export const doubleClick60 = "doubleClick60";
|
|
14
|
+
export const tripleClick100 = "tripleClick100";
|
|
15
|
+
export const softFuzz60 = "softFuzz60";
|
|
16
|
+
export const strongBuzz100 = "strongBuzz100";
|
|
17
|
+
export const alert750ms = "alert750ms";
|
|
18
|
+
export const alert1000ms = "alert1000ms";
|
|
19
|
+
export const strongClick1_100 = "strongClick1_100";
|
|
20
|
+
export const strongClick2_80 = "strongClick2_80";
|
|
21
|
+
export const strongClick3_60 = "strongClick3_60";
|
|
22
|
+
export const strongClick4_30 = "strongClick4_30";
|
|
23
|
+
export const mediumClick1_100 = "mediumClick1_100";
|
|
24
|
+
export const mediumClick2_80 = "mediumClick2_80";
|
|
25
|
+
export const mediumClick3_60 = "mediumClick3_60";
|
|
26
|
+
export const sharpTick1_100 = "sharpTick1_100";
|
|
27
|
+
export const sharpTick2_80 = "sharpTick2_80";
|
|
28
|
+
export const sharpTick3_60 = "sharpTick3_60";
|
|
29
|
+
export const shortDoubleClickStrong1_100 = "shortDoubleClickStrong1_100";
|
|
30
|
+
export const shortDoubleClickStrong2_80 = "shortDoubleClickStrong2_80";
|
|
31
|
+
export const shortDoubleClickStrong3_60 = "shortDoubleClickStrong3_60";
|
|
32
|
+
export const shortDoubleClickStrong4_30 = "shortDoubleClickStrong4_30";
|
|
33
|
+
export const shortDoubleClickMedium1_100 = "shortDoubleClickMedium1_100";
|
|
34
|
+
export const shortDoubleClickMedium2_80 = "shortDoubleClickMedium2_80";
|
|
35
|
+
export const shortDoubleClickMedium3_60 = "shortDoubleClickMedium3_60";
|
|
36
|
+
export const shortDoubleSharpTick1_100 = "shortDoubleSharpTick1_100";
|
|
37
|
+
export const shortDoubleSharpTick2_80 = "shortDoubleSharpTick2_80";
|
|
38
|
+
export const shortDoubleSharpTick3_60 = "shortDoubleSharpTick3_60";
|
|
39
|
+
export const longDoubleSharpClickStrong1_100 = "longDoubleSharpClickStrong1_100";
|
|
40
|
+
export const longDoubleSharpClickStrong2_80 = "longDoubleSharpClickStrong2_80";
|
|
41
|
+
export const longDoubleSharpClickStrong3_60 = "longDoubleSharpClickStrong3_60";
|
|
42
|
+
export const longDoubleSharpClickStrong4_30 = "longDoubleSharpClickStrong4_30";
|
|
43
|
+
export const longDoubleSharpClickMedium1_100 = "longDoubleSharpClickMedium1_100";
|
|
44
|
+
export const longDoubleSharpClickMedium2_80 = "longDoubleSharpClickMedium2_80";
|
|
45
|
+
export const longDoubleSharpClickMedium3_60 = "longDoubleSharpClickMedium3_60";
|
|
46
|
+
export const longDoubleSharpTick1_100 = "longDoubleSharpTick1_100";
|
|
47
|
+
export const longDoubleSharpTick2_80 = "longDoubleSharpTick2_80";
|
|
48
|
+
export const longDoubleSharpTick3_60 = "longDoubleSharpTick3_60";
|
|
49
|
+
export const buzz1_100 = "buzz1_100";
|
|
50
|
+
export const buzz2_80 = "buzz2_80";
|
|
51
|
+
export const buzz3_60 = "buzz3_60";
|
|
52
|
+
export const buzz4_40 = "buzz4_40";
|
|
53
|
+
export const buzz5_20 = "buzz5_20";
|
|
54
|
+
export const pulsingStong1_100 = "pulsingStong1_100";
|
|
55
|
+
export const pulsingStong2_60 = "pulsingStong2_60";
|
|
56
|
+
export const pulsingMedium1_100 = "pulsingMedium1_100";
|
|
57
|
+
export const pulsingMedium2_60 = "pulsingMedium2_60";
|
|
58
|
+
export const pulsingSharp1_100 = "pulsingSharp1_100";
|
|
59
|
+
export const pulsingSharp2_60 = "pulsingSharp2_60";
|
|
60
|
+
export const transistionClick1_100 = "transistionClick1_100";
|
|
61
|
+
export const transistionClick2_80 = "transistionClick2_80";
|
|
62
|
+
export const transistionClick3_60 = "transistionClick3_60";
|
|
63
|
+
export const transistionClick4_40 = "transistionClick4_40";
|
|
64
|
+
export const transistionClick5_20 = "transistionClick5_20";
|
|
65
|
+
export const transistionClick6_10 = "transistionClick6_10";
|
|
66
|
+
export const transistionHum1_100 = "transistionHum1_100";
|
|
67
|
+
export const transistionHum2_80 = "transistionHum2_80";
|
|
68
|
+
export const transistionHum3_60 = "transistionHum3_60";
|
|
69
|
+
export const transistionHum4_40 = "transistionHum4_40";
|
|
70
|
+
export const transistionHum5_20 = "transistionHum5_20";
|
|
71
|
+
export const transistionHum6_10 = "transistionHum6_10";
|
|
72
|
+
export const transitionRampDownLongSmooth1_100_to_0 = "transitionRampDownLongSmooth1_100_to_0";
|
|
73
|
+
export const transitionRampDownLongSmooth2_100_to_0 = "transitionRampDownLongSmooth2_100_to_0";
|
|
74
|
+
export const transitionRampDownMediumSmooth1_100_to_0 = "transitionRampDownMediumSmooth1_100_to_0";
|
|
75
|
+
export const transitionRampDownMediumSmooth2_100_to_0 = "transitionRampDownMediumSmooth2_100_to_0";
|
|
76
|
+
export const transitionRampDownShortSmooth1_100_to_0 = "transitionRampDownShortSmooth1_100_to_0";
|
|
77
|
+
export const transitionRampDownShortSmooth2_100_to_0 = "transitionRampDownShortSmooth2_100_to_0";
|
|
78
|
+
export const transitionRampDownLongSharp1_100_to_0 = "transitionRampDownLongSharp1_100_to_0";
|
|
79
|
+
export const transitionRampDownLongSharp2_100_to_0 = "transitionRampDownLongSharp2_100_to_0";
|
|
80
|
+
export const transitionRampDownLongMedium1_100_to_0 = "transitionRampDownLongMedium1_100_to_0";
|
|
81
|
+
export const transitionRampDownLongMedium2_100_to_0 = "transitionRampDownLongMedium2_100_to_0";
|
|
82
|
+
export const transitionRampDownShortSharp1_100_to_0 = "transitionRampDownShortSharp1_100_to_0";
|
|
83
|
+
export const transitionRampDownShortSharp2_100_to_0 = "transitionRampDownShortSharp2_100_to_0";
|
|
84
|
+
export const transitionRampUpLongSmooth1_0_to_100 = "transitionRampUpLongSmooth1_0_to_100";
|
|
85
|
+
export const transitionRampUpLongSmooth2_0_to_100 = "transitionRampUpLongSmooth2_0_to_100";
|
|
86
|
+
export const transitionRampUpMediumSmooth1_0_to_100 = "transitionRampUpMediumSmooth1_0_to_100";
|
|
87
|
+
export const transitionRampUpMediumSmooth2_0_to_100 = "transitionRampUpMediumSmooth2_0_to_100";
|
|
88
|
+
export const transitionRampUpShortSmooth1_0_to_100 = "transitionRampUpShortSmooth1_0_to_100";
|
|
89
|
+
export const transitionRampUpShortSmooth2_0_to_100 = "transitionRampUpShortSmooth2_0_to_100";
|
|
90
|
+
export const transitionRampUpLongSharp1_0_to_100 = "transitionRampUpLongSharp1_0_to_100";
|
|
91
|
+
export const transitionRampUpLongSharp2_0_to_100 = "transitionRampUpLongSharp2_0_to_100";
|
|
92
|
+
export const transitionRampUpMediumSharp1_0_to_100 = "transitionRampUpMediumSharp1_0_to_100";
|
|
93
|
+
export const transitionRampUpMediumSharp2_0_to_100 = "transitionRampUpMediumSharp2_0_to_100";
|
|
94
|
+
export const transitionRampUpShortSharp1_0_to_100 = "transitionRampUpShortSharp1_0_to_100";
|
|
95
|
+
export const transitionRampUpShortSharp2_0_to_100 = "transitionRampUpShortSharp2_0_to_100";
|
|
96
|
+
export const transitionRampDownLongSmooth1_50_to_0 = "transitionRampDownLongSmooth1_50_to_0";
|
|
97
|
+
export const transitionRampDownLongSmooth2_50_to_0 = "transitionRampDownLongSmooth2_50_to_0";
|
|
98
|
+
export const transitionRampDownMediumSmooth1_50_to_0 = "transitionRampDownMediumSmooth1_50_to_0";
|
|
99
|
+
export const transitionRampDownMediumSmooth2_50_to_0 = "transitionRampDownMediumSmooth2_50_to_0";
|
|
100
|
+
export const transitionRampDownShortSmooth1_50_to_0 = "transitionRampDownShortSmooth1_50_to_0";
|
|
101
|
+
export const transitionRampDownShortSmooth2_50_to_0 = "transitionRampDownShortSmooth2_50_to_0";
|
|
102
|
+
export const transitionRampDownLongSharp1_50_to_0 = "transitionRampDownLongSharp1_50_to_0";
|
|
103
|
+
export const transitionRampDownLongSharp2_50_to_0 = "transitionRampDownLongSharp2_50_to_0";
|
|
104
|
+
export const transitionRampDownMediumSharp1_50_to_0 = "transitionRampDownMediumSharp1_50_to_0";
|
|
105
|
+
export const transitionRampDownMediumSharp2_50_to_0 = "transitionRampDownMediumSharp2_50_to_0";
|
|
106
|
+
export const transitionRampDownShortSharp1_50_to_0 = "transitionRampDownShortSharp1_50_to_0";
|
|
107
|
+
export const transitionRampDownShortSharp2_50_to_0 = "transitionRampDownShortSharp2_50_to_0";
|
|
108
|
+
export const transitionRampUpLongSmooth1_0_to_50 = "transitionRampUpLongSmooth1_0_to_50";
|
|
109
|
+
export const transitionRampUpLongSmooth2_0_to_50 = "transitionRampUpLongSmooth2_0_to_50";
|
|
110
|
+
export const transitionRampUpMediumSmooth1_0_to_50 = "transitionRampUpMediumSmooth1_0_to_50";
|
|
111
|
+
export const transitionRampUpMediumSmooth2_0_to_50 = "transitionRampUpMediumSmooth2_0_to_50";
|
|
112
|
+
export const transitionRampUpShortSmooth1_0_to_50 = "transitionRampUpShortSmooth1_0_to_50";
|
|
113
|
+
export const transitionRampUpShortSmooth2_0_to_50 = "transitionRampUpShortSmooth2_0_to_50";
|
|
114
|
+
export const transitionRampUpLongSharp1_0_to_50 = "transitionRampUpLongSharp1_0_to_50";
|
|
115
|
+
export const transitionRampUpLongSharp2_0_to_50 = "transitionRampUpLongSharp2_0_to_50";
|
|
116
|
+
export const transitionRampUpMediumSharp1_0_to_50 = "transitionRampUpMediumSharp1_0_to_50";
|
|
117
|
+
export const transitionRampUpMediumSharp2_0_to_50 = "transitionRampUpMediumSharp2_0_to_50";
|
|
118
|
+
export const transitionRampUpShortSharp1_0_to_50 = "transitionRampUpShortSharp1_0_to_50";
|
|
119
|
+
export const transitionRampUpShortSharp2_0_to_50 = "transitionRampUpShortSharp2_0_to_50";
|
|
120
|
+
export const longBuzzForProgrammaticStopping_100 = "longBuzzForProgrammaticStopping_100";
|
|
121
|
+
export const smoothHum1_50 = "smoothHum1_50";
|
|
122
|
+
export const smoothHum2_40 = "smoothHum2_40";
|
|
123
|
+
export const smoothHum3_30 = "smoothHum3_30";
|
|
124
|
+
export const smoothHum4_20 = "smoothHum4_20";
|
|
125
|
+
export const smoothHum5_10 = "smoothHum5_10";
|