@neurosity/sdk 6.2.0 → 6.2.1-next.1

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.
Files changed (299) hide show
  1. package/package.json +19 -23
  2. package/CHANGELOG.md +0 -25
  3. package/dist/browser/neurosity.iife.js +0 -48712
  4. package/dist/browser/neurosity.js +0 -666
  5. package/dist/browser/neurosity.js.map +0 -1
  6. package/dist/cjs/Neurosity.d.ts +0 -619
  7. package/dist/cjs/Neurosity.js +0 -1244
  8. package/dist/cjs/api/bluetooth/BluetoothClient.d.ts +0 -72
  9. package/dist/cjs/api/bluetooth/BluetoothClient.js +0 -310
  10. package/dist/cjs/api/bluetooth/BluetoothTransport.d.ts +0 -33
  11. package/dist/cjs/api/bluetooth/BluetoothTransport.js +0 -2
  12. package/dist/cjs/api/bluetooth/constants.d.ts +0 -4
  13. package/dist/cjs/api/bluetooth/constants.js +0 -9
  14. package/dist/cjs/api/bluetooth/index.d.ts +0 -4
  15. package/dist/cjs/api/bluetooth/index.js +0 -20
  16. package/dist/cjs/api/bluetooth/react-native/ReactNativeTransport.d.ts +0 -70
  17. package/dist/cjs/api/bluetooth/react-native/ReactNativeTransport.js +0 -406
  18. package/dist/cjs/api/bluetooth/react-native/types/BleManagerTypes.d.ts +0 -63
  19. package/dist/cjs/api/bluetooth/react-native/types/BleManagerTypes.js +0 -11
  20. package/dist/cjs/api/bluetooth/react-native/types/ReactNativeTypes.d.ts +0 -180
  21. package/dist/cjs/api/bluetooth/react-native/types/ReactNativeTypes.js +0 -10
  22. package/dist/cjs/api/bluetooth/types/index.d.ts +0 -31
  23. package/dist/cjs/api/bluetooth/types/index.js +0 -22
  24. package/dist/cjs/api/bluetooth/utils/create6DigitPin.d.ts +0 -1
  25. package/dist/cjs/api/bluetooth/utils/create6DigitPin.js +0 -8
  26. package/dist/cjs/api/bluetooth/utils/csvBufferToEpoch.d.ts +0 -11
  27. package/dist/cjs/api/bluetooth/utils/csvBufferToEpoch.js +0 -36
  28. package/dist/cjs/api/bluetooth/utils/encoding.d.ts +0 -3
  29. package/dist/cjs/api/bluetooth/utils/encoding.js +0 -22
  30. package/dist/cjs/api/bluetooth/utils/osHasBluetoothSupport.d.ts +0 -2
  31. package/dist/cjs/api/bluetooth/utils/osHasBluetoothSupport.js +0 -23
  32. package/dist/cjs/api/bluetooth/utils/stitch.d.ts +0 -5
  33. package/dist/cjs/api/bluetooth/utils/stitch.js +0 -22
  34. package/dist/cjs/api/bluetooth/web/WebBluetoothTransport.d.ts +0 -54
  35. package/dist/cjs/api/bluetooth/web/WebBluetoothTransport.js +0 -430
  36. package/dist/cjs/api/bluetooth/web/isMaybeWebWorkerContext.d.ts +0 -1
  37. package/dist/cjs/api/bluetooth/web/isMaybeWebWorkerContext.js +0 -8
  38. package/dist/cjs/api/bluetooth/web/isWebBluetoothSupported.d.ts +0 -1
  39. package/dist/cjs/api/bluetooth/web/isWebBluetoothSupported.js +0 -11
  40. package/dist/cjs/api/firebase/FirebaseApp.d.ts +0 -20
  41. package/dist/cjs/api/firebase/FirebaseApp.js +0 -70
  42. package/dist/cjs/api/firebase/FirebaseDevice.d.ts +0 -68
  43. package/dist/cjs/api/firebase/FirebaseDevice.js +0 -146
  44. package/dist/cjs/api/firebase/FirebaseUser.d.ts +0 -53
  45. package/dist/cjs/api/firebase/FirebaseUser.js +0 -434
  46. package/dist/cjs/api/firebase/config.d.ts +0 -8
  47. package/dist/cjs/api/firebase/config.js +0 -11
  48. package/dist/cjs/api/firebase/deviceStore.d.ts +0 -26
  49. package/dist/cjs/api/firebase/deviceStore.js +0 -191
  50. package/dist/cjs/api/firebase/index.d.ts +0 -3
  51. package/dist/cjs/api/firebase/index.js +0 -19
  52. package/dist/cjs/api/https/config.d.ts +0 -1
  53. package/dist/cjs/api/https/config.js +0 -4
  54. package/dist/cjs/api/https/createOAuthURL.d.ts +0 -3
  55. package/dist/cjs/api/https/createOAuthURL.js +0 -18
  56. package/dist/cjs/api/https/getOAuthToken.d.ts +0 -3
  57. package/dist/cjs/api/https/getOAuthToken.js +0 -34
  58. package/dist/cjs/api/https/utils.d.ts +0 -2
  59. package/dist/cjs/api/https/utils.js +0 -13
  60. package/dist/cjs/api/index.d.ts +0 -109
  61. package/dist/cjs/api/index.js +0 -307
  62. package/dist/cjs/index.d.ts +0 -2
  63. package/dist/cjs/index.js +0 -18
  64. package/dist/cjs/subscriptions/SubscriptionManager.d.ts +0 -11
  65. package/dist/cjs/subscriptions/SubscriptionManager.js +0 -27
  66. package/dist/cjs/timesync/Timesync.d.ts +0 -20
  67. package/dist/cjs/timesync/Timesync.js +0 -78
  68. package/dist/cjs/timesync/index.d.ts +0 -1
  69. package/dist/cjs/timesync/index.js +0 -17
  70. package/dist/cjs/types/accelerometer.d.ts +0 -10
  71. package/dist/cjs/types/accelerometer.js +0 -2
  72. package/dist/cjs/types/actions.d.ts +0 -16
  73. package/dist/cjs/types/actions.js +0 -2
  74. package/dist/cjs/types/awareness.d.ts +0 -1
  75. package/dist/cjs/types/awareness.js +0 -2
  76. package/dist/cjs/types/brainwaves.d.ts +0 -26
  77. package/dist/cjs/types/brainwaves.js +0 -2
  78. package/dist/cjs/types/calm.d.ts +0 -6
  79. package/dist/cjs/types/calm.js +0 -2
  80. package/dist/cjs/types/client.d.ts +0 -22
  81. package/dist/cjs/types/client.js +0 -2
  82. package/dist/cjs/types/credentials.d.ts +0 -12
  83. package/dist/cjs/types/credentials.js +0 -2
  84. package/dist/cjs/types/deviceInfo.d.ts +0 -18
  85. package/dist/cjs/types/deviceInfo.js +0 -2
  86. package/dist/cjs/types/epoch.d.ts +0 -12
  87. package/dist/cjs/types/epoch.js +0 -2
  88. package/dist/cjs/types/experiment.d.ts +0 -9
  89. package/dist/cjs/types/experiment.js +0 -2
  90. package/dist/cjs/types/focus.d.ts +0 -6
  91. package/dist/cjs/types/focus.js +0 -2
  92. package/dist/cjs/types/hapticEffects.d.ts +0 -125
  93. package/dist/cjs/types/hapticEffects.js +0 -2
  94. package/dist/cjs/types/kinesis.d.ts +0 -6
  95. package/dist/cjs/types/kinesis.js +0 -2
  96. package/dist/cjs/types/marker.d.ts +0 -7
  97. package/dist/cjs/types/marker.js +0 -2
  98. package/dist/cjs/types/metrics.d.ts +0 -21
  99. package/dist/cjs/types/metrics.js +0 -2
  100. package/dist/cjs/types/oauth.d.ts +0 -20
  101. package/dist/cjs/types/oauth.js +0 -2
  102. package/dist/cjs/types/options.d.ts +0 -51
  103. package/dist/cjs/types/options.js +0 -2
  104. package/dist/cjs/types/sample.d.ts +0 -15
  105. package/dist/cjs/types/sample.js +0 -2
  106. package/dist/cjs/types/settings.d.ts +0 -13
  107. package/dist/cjs/types/settings.js +0 -2
  108. package/dist/cjs/types/signalQuality.d.ts +0 -13
  109. package/dist/cjs/types/signalQuality.js +0 -2
  110. package/dist/cjs/types/skill.d.ts +0 -68
  111. package/dist/cjs/types/skill.js +0 -2
  112. package/dist/cjs/types/status.d.ts +0 -26
  113. package/dist/cjs/types/status.js +0 -22
  114. package/dist/cjs/types/streaming.d.ts +0 -15
  115. package/dist/cjs/types/streaming.js +0 -20
  116. package/dist/cjs/types/subscriptions.d.ts +0 -23
  117. package/dist/cjs/types/subscriptions.js +0 -2
  118. package/dist/cjs/types/training.d.ts +0 -19
  119. package/dist/cjs/types/training.js +0 -2
  120. package/dist/cjs/types/user.d.ts +0 -12
  121. package/dist/cjs/types/user.js +0 -2
  122. package/dist/cjs/utils/errors.d.ts +0 -5
  123. package/dist/cjs/utils/errors.js +0 -17
  124. package/dist/cjs/utils/filterInternalKeys.d.ts +0 -3
  125. package/dist/cjs/utils/filterInternalKeys.js +0 -21
  126. package/dist/cjs/utils/hapticEffects.d.ts +0 -123
  127. package/dist/cjs/utils/hapticEffects.js +0 -130
  128. package/dist/cjs/utils/heartbeat.d.ts +0 -4
  129. package/dist/cjs/utils/heartbeat.js +0 -41
  130. package/dist/cjs/utils/is-node.d.ts +0 -1
  131. package/dist/cjs/utils/is-node.js +0 -9
  132. package/dist/cjs/utils/metrics.d.ts +0 -1
  133. package/dist/cjs/utils/metrics.js +0 -56
  134. package/dist/cjs/utils/oauth.d.ts +0 -9
  135. package/dist/cjs/utils/oauth.js +0 -92
  136. package/dist/cjs/utils/pick.d.ts +0 -1
  137. package/dist/cjs/utils/pick.js +0 -5
  138. package/dist/cjs/utils/pipes.d.ts +0 -46
  139. package/dist/cjs/utils/pipes.js +0 -71
  140. package/dist/cjs/utils/platform.d.ts +0 -30
  141. package/dist/cjs/utils/platform.js +0 -47
  142. package/dist/cjs/utils/subscription.d.ts +0 -6
  143. package/dist/cjs/utils/subscription.js +0 -55
  144. package/dist/cjs/utils/transferDevice.d.ts +0 -9
  145. package/dist/cjs/utils/transferDevice.js +0 -2
  146. package/dist/cjs/utils/whileOnline.d.ts +0 -8
  147. package/dist/cjs/utils/whileOnline.js +0 -15
  148. package/dist/electron/index.js +0 -86
  149. package/dist/electron/index.js.map +0 -1
  150. package/dist/esm/Neurosity.d.ts +0 -619
  151. package/dist/esm/Neurosity.js +0 -1213
  152. package/dist/esm/api/bluetooth/BluetoothClient.d.ts +0 -72
  153. package/dist/esm/api/bluetooth/BluetoothClient.js +0 -306
  154. package/dist/esm/api/bluetooth/BluetoothTransport.d.ts +0 -33
  155. package/dist/esm/api/bluetooth/BluetoothTransport.js +0 -1
  156. package/dist/esm/api/bluetooth/constants.d.ts +0 -4
  157. package/dist/esm/api/bluetooth/constants.js +0 -6
  158. package/dist/esm/api/bluetooth/index.d.ts +0 -4
  159. package/dist/esm/api/bluetooth/index.js +0 -4
  160. package/dist/esm/api/bluetooth/react-native/ReactNativeTransport.d.ts +0 -70
  161. package/dist/esm/api/bluetooth/react-native/ReactNativeTransport.js +0 -402
  162. package/dist/esm/api/bluetooth/react-native/types/BleManagerTypes.d.ts +0 -63
  163. package/dist/esm/api/bluetooth/react-native/types/BleManagerTypes.js +0 -8
  164. package/dist/esm/api/bluetooth/react-native/types/ReactNativeTypes.d.ts +0 -180
  165. package/dist/esm/api/bluetooth/react-native/types/ReactNativeTypes.js +0 -9
  166. package/dist/esm/api/bluetooth/types/index.d.ts +0 -31
  167. package/dist/esm/api/bluetooth/types/index.js +0 -19
  168. package/dist/esm/api/bluetooth/utils/create6DigitPin.d.ts +0 -1
  169. package/dist/esm/api/bluetooth/utils/create6DigitPin.js +0 -4
  170. package/dist/esm/api/bluetooth/utils/csvBufferToEpoch.d.ts +0 -11
  171. package/dist/esm/api/bluetooth/utils/csvBufferToEpoch.js +0 -31
  172. package/dist/esm/api/bluetooth/utils/encoding.d.ts +0 -3
  173. package/dist/esm/api/bluetooth/utils/encoding.js +0 -17
  174. package/dist/esm/api/bluetooth/utils/osHasBluetoothSupport.d.ts +0 -2
  175. package/dist/esm/api/bluetooth/utils/osHasBluetoothSupport.js +0 -16
  176. package/dist/esm/api/bluetooth/utils/stitch.d.ts +0 -5
  177. package/dist/esm/api/bluetooth/utils/stitch.js +0 -18
  178. package/dist/esm/api/bluetooth/web/WebBluetoothTransport.d.ts +0 -54
  179. package/dist/esm/api/bluetooth/web/WebBluetoothTransport.js +0 -426
  180. package/dist/esm/api/bluetooth/web/isMaybeWebWorkerContext.d.ts +0 -1
  181. package/dist/esm/api/bluetooth/web/isMaybeWebWorkerContext.js +0 -4
  182. package/dist/esm/api/bluetooth/web/isWebBluetoothSupported.d.ts +0 -1
  183. package/dist/esm/api/bluetooth/web/isWebBluetoothSupported.js +0 -7
  184. package/dist/esm/api/firebase/FirebaseApp.d.ts +0 -20
  185. package/dist/esm/api/firebase/FirebaseApp.js +0 -63
  186. package/dist/esm/api/firebase/FirebaseDevice.d.ts +0 -68
  187. package/dist/esm/api/firebase/FirebaseDevice.js +0 -139
  188. package/dist/esm/api/firebase/FirebaseUser.d.ts +0 -53
  189. package/dist/esm/api/firebase/FirebaseUser.js +0 -426
  190. package/dist/esm/api/firebase/config.d.ts +0 -8
  191. package/dist/esm/api/firebase/config.js +0 -8
  192. package/dist/esm/api/firebase/deviceStore.d.ts +0 -26
  193. package/dist/esm/api/firebase/deviceStore.js +0 -184
  194. package/dist/esm/api/firebase/index.d.ts +0 -3
  195. package/dist/esm/api/firebase/index.js +0 -3
  196. package/dist/esm/api/https/config.d.ts +0 -1
  197. package/dist/esm/api/https/config.js +0 -1
  198. package/dist/esm/api/https/createOAuthURL.d.ts +0 -3
  199. package/dist/esm/api/https/createOAuthURL.js +0 -11
  200. package/dist/esm/api/https/getOAuthToken.d.ts +0 -3
  201. package/dist/esm/api/https/getOAuthToken.js +0 -27
  202. package/dist/esm/api/https/utils.d.ts +0 -2
  203. package/dist/esm/api/https/utils.js +0 -9
  204. package/dist/esm/api/index.d.ts +0 -109
  205. package/dist/esm/api/index.js +0 -300
  206. package/dist/esm/index.d.ts +0 -2
  207. package/dist/esm/index.js +0 -2
  208. package/dist/esm/neurosity.mjs +0 -48700
  209. package/dist/esm/subscriptions/SubscriptionManager.d.ts +0 -11
  210. package/dist/esm/subscriptions/SubscriptionManager.js +0 -23
  211. package/dist/esm/timesync/Timesync.d.ts +0 -20
  212. package/dist/esm/timesync/Timesync.js +0 -71
  213. package/dist/esm/timesync/index.d.ts +0 -1
  214. package/dist/esm/timesync/index.js +0 -1
  215. package/dist/esm/types/accelerometer.d.ts +0 -10
  216. package/dist/esm/types/accelerometer.js +0 -1
  217. package/dist/esm/types/actions.d.ts +0 -16
  218. package/dist/esm/types/actions.js +0 -1
  219. package/dist/esm/types/awareness.d.ts +0 -1
  220. package/dist/esm/types/awareness.js +0 -1
  221. package/dist/esm/types/brainwaves.d.ts +0 -26
  222. package/dist/esm/types/brainwaves.js +0 -1
  223. package/dist/esm/types/calm.d.ts +0 -6
  224. package/dist/esm/types/calm.js +0 -1
  225. package/dist/esm/types/client.d.ts +0 -22
  226. package/dist/esm/types/client.js +0 -1
  227. package/dist/esm/types/credentials.d.ts +0 -12
  228. package/dist/esm/types/credentials.js +0 -1
  229. package/dist/esm/types/deviceInfo.d.ts +0 -18
  230. package/dist/esm/types/deviceInfo.js +0 -1
  231. package/dist/esm/types/epoch.d.ts +0 -12
  232. package/dist/esm/types/epoch.js +0 -1
  233. package/dist/esm/types/experiment.d.ts +0 -9
  234. package/dist/esm/types/experiment.js +0 -1
  235. package/dist/esm/types/focus.d.ts +0 -6
  236. package/dist/esm/types/focus.js +0 -1
  237. package/dist/esm/types/hapticEffects.d.ts +0 -125
  238. package/dist/esm/types/hapticEffects.js +0 -1
  239. package/dist/esm/types/kinesis.d.ts +0 -6
  240. package/dist/esm/types/kinesis.js +0 -1
  241. package/dist/esm/types/marker.d.ts +0 -7
  242. package/dist/esm/types/marker.js +0 -1
  243. package/dist/esm/types/metrics.d.ts +0 -21
  244. package/dist/esm/types/metrics.js +0 -1
  245. package/dist/esm/types/oauth.d.ts +0 -20
  246. package/dist/esm/types/oauth.js +0 -1
  247. package/dist/esm/types/options.d.ts +0 -51
  248. package/dist/esm/types/options.js +0 -1
  249. package/dist/esm/types/sample.d.ts +0 -15
  250. package/dist/esm/types/sample.js +0 -1
  251. package/dist/esm/types/settings.d.ts +0 -13
  252. package/dist/esm/types/settings.js +0 -1
  253. package/dist/esm/types/signalQuality.d.ts +0 -13
  254. package/dist/esm/types/signalQuality.js +0 -1
  255. package/dist/esm/types/skill.d.ts +0 -68
  256. package/dist/esm/types/skill.js +0 -1
  257. package/dist/esm/types/status.d.ts +0 -26
  258. package/dist/esm/types/status.js +0 -19
  259. package/dist/esm/types/streaming.d.ts +0 -15
  260. package/dist/esm/types/streaming.js +0 -17
  261. package/dist/esm/types/subscriptions.d.ts +0 -23
  262. package/dist/esm/types/subscriptions.js +0 -1
  263. package/dist/esm/types/training.d.ts +0 -19
  264. package/dist/esm/types/training.js +0 -1
  265. package/dist/esm/types/user.d.ts +0 -12
  266. package/dist/esm/types/user.js +0 -1
  267. package/dist/esm/utils/errors.d.ts +0 -5
  268. package/dist/esm/utils/errors.js +0 -11
  269. package/dist/esm/utils/filterInternalKeys.d.ts +0 -3
  270. package/dist/esm/utils/filterInternalKeys.js +0 -17
  271. package/dist/esm/utils/hapticEffects.d.ts +0 -123
  272. package/dist/esm/utils/hapticEffects.js +0 -125
  273. package/dist/esm/utils/heartbeat.d.ts +0 -4
  274. package/dist/esm/utils/heartbeat.js +0 -33
  275. package/dist/esm/utils/is-node.d.ts +0 -1
  276. package/dist/esm/utils/is-node.js +0 -5
  277. package/dist/esm/utils/metrics.d.ts +0 -1
  278. package/dist/esm/utils/metrics.js +0 -52
  279. package/dist/esm/utils/oauth.d.ts +0 -9
  280. package/dist/esm/utils/oauth.js +0 -64
  281. package/dist/esm/utils/pick.d.ts +0 -1
  282. package/dist/esm/utils/pick.js +0 -1
  283. package/dist/esm/utils/pipes.d.ts +0 -46
  284. package/dist/esm/utils/pipes.js +0 -65
  285. package/dist/esm/utils/platform.d.ts +0 -30
  286. package/dist/esm/utils/platform.js +0 -41
  287. package/dist/esm/utils/subscription.d.ts +0 -6
  288. package/dist/esm/utils/subscription.js +0 -24
  289. package/dist/esm/utils/transferDevice.d.ts +0 -9
  290. package/dist/esm/utils/transferDevice.js +0 -1
  291. package/dist/esm/utils/whileOnline.d.ts +0 -8
  292. package/dist/esm/utils/whileOnline.js +0 -11
  293. package/dist/examples/auth.html +0 -32
  294. package/dist/examples/cloud.html +0 -17
  295. package/dist/examples/index.html +0 -1
  296. package/dist/examples/neurosity.iife.js +0 -48712
  297. package/dist/examples/neurosity.js +0 -666
  298. package/dist/examples/neurosity.mjs +0 -48700
  299. package/dist/examples/training.html +0 -49
@@ -1,9 +0,0 @@
1
- export declare type Experiment = {
2
- deviceId: string;
3
- id: string;
4
- labels: string[];
5
- name: string;
6
- timestamp: number;
7
- totalTrials: number;
8
- userId: string;
9
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export interface Focus {
2
- metric: "awareness";
3
- label: "focus";
4
- probability: number;
5
- timestamp: number;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,125 +0,0 @@
1
- export declare type HapticEffects = {
2
- strongClick100: string;
3
- strongClick60: string;
4
- strongClick30: string;
5
- sharpClick100: string;
6
- sharpClick60: string;
7
- sharpClick30: string;
8
- softBump100: string;
9
- softBump60: string;
10
- softBump30: string;
11
- doubleClick100: string;
12
- doubleClick60: string;
13
- tripleClick100: string;
14
- softFuzz60: string;
15
- strongBuzz100: string;
16
- alert750ms: string;
17
- alert1000ms: string;
18
- strongClick1_100: string;
19
- strongClick2_80: string;
20
- strongClick3_60: string;
21
- strongClick4_30: string;
22
- mediumClick1_100: string;
23
- mediumClick2_80: string;
24
- mediumClick3_60: string;
25
- sharpTick1_100: string;
26
- sharpTick2_80: string;
27
- sharpTick3_60: string;
28
- shortDoubleClickStrong1_100: string;
29
- shortDoubleClickStrong2_80: string;
30
- shortDoubleClickStrong3_60: string;
31
- shortDoubleClickStrong4_30: string;
32
- shortDoubleClickMedium1_100: string;
33
- shortDoubleClickMedium2_80: string;
34
- shortDoubleClickMedium3_60: string;
35
- shortDoubleSharpTick1_100: string;
36
- shortDoubleSharpTick2_80: string;
37
- shortDoubleSharpTick3_60: string;
38
- longDoubleSharpClickStrong1_100: string;
39
- longDoubleSharpClickStrong2_80: string;
40
- longDoubleSharpClickStrong3_60: string;
41
- longDoubleSharpClickStrong4_30: string;
42
- longDoubleSharpClickMedium1_100: string;
43
- longDoubleSharpClickMedium2_80: string;
44
- longDoubleSharpClickMedium3_60: string;
45
- longDoubleSharpTick1_100: string;
46
- longDoubleSharpTick2_80: string;
47
- longDoubleSharpTick3_60: string;
48
- buzz1_100: string;
49
- buzz2_80: string;
50
- buzz3_60: string;
51
- buzz4_40: string;
52
- buzz5_20: string;
53
- pulsingStong1_100: string;
54
- pulsingStong2_60: string;
55
- pulsingMedium1_100: string;
56
- pulsingMedium2_60: string;
57
- pulsingSharp1_100: string;
58
- pulsingSharp2_60: string;
59
- transistionClick1_100: string;
60
- transistionClick2_80: string;
61
- transistionClick3_60: string;
62
- transistionClick4_40: string;
63
- transistionClick5_20: string;
64
- transistionClick6_10: string;
65
- transistionHum1_100: string;
66
- transistionHum2_80: string;
67
- transistionHum3_60: string;
68
- transistionHum4_40: string;
69
- transistionHum5_20: string;
70
- transistionHum6_10: string;
71
- transitionRampDownLongSmooth1_100_to_0: string;
72
- transitionRampDownLongSmooth2_100_to_0: string;
73
- transitionRampDownMediumSmooth1_100_to_0: string;
74
- transitionRampDownMediumSmooth2_100_to_0: string;
75
- transitionRampDownShortSmooth1_100_to_0: string;
76
- transitionRampDownShortSmooth2_100_to_0: string;
77
- transitionRampDownLongSharp1_100_to_0: string;
78
- transitionRampDownLongSharp2_100_to_0: string;
79
- transitionRampDownLongMedium1_100_to_0: string;
80
- transitionRampDownLongMedium2_100_to_0: string;
81
- transitionRampDownShortSharp1_100_to_0: string;
82
- transitionRampDownShortSharp2_100_to_0: string;
83
- transitionRampUpLongSmooth1_0_to_100: string;
84
- transitionRampUpLongSmooth2_0_to_100: string;
85
- transitionRampUpMediumSmooth1_0_to_100: string;
86
- transitionRampUpMediumSmooth2_0_to_100: string;
87
- transitionRampUpShortSmooth1_0_to_100: string;
88
- transitionRampUpShortSmooth2_0_to_100: string;
89
- transitionRampUpLongSharp1_0_to_100: string;
90
- transitionRampUpLongSharp2_0_to_100: string;
91
- transitionRampUpMediumSharp1_0_to_100: string;
92
- transitionRampUpMediumSharp2_0_to_100: string;
93
- transitionRampUpShortSharp1_0_to_100: string;
94
- transitionRampUpShortSharp2_0_to_100: string;
95
- transitionRampDownLongSmooth1_50_to_0: string;
96
- transitionRampDownLongSmooth2_50_to_0: string;
97
- transitionRampDownMediumSmooth1_50_to_0: string;
98
- transitionRampDownMediumSmooth2_50_to_0: string;
99
- transitionRampDownShortSmooth1_50_to_0: string;
100
- transitionRampDownShortSmooth2_50_to_0: string;
101
- transitionRampDownLongSharp1_50_to_0: string;
102
- transitionRampDownLongSharp2_50_to_0: string;
103
- transitionRampDownMediumSharp1_50_to_0: string;
104
- transitionRampDownMediumSharp2_50_to_0: string;
105
- transitionRampDownShortSharp1_50_to_0: string;
106
- transitionRampDownShortSharp2_50_to_0: string;
107
- transitionRampUpLongSmooth1_0_to_50: string;
108
- transitionRampUpLongSmooth2_0_to_50: string;
109
- transitionRampUpMediumSmooth1_0_to_50: string;
110
- transitionRampUpMediumSmooth2_0_to_50: string;
111
- transitionRampUpShortSmooth1_0_to_50: string;
112
- transitionRampUpShortSmooth2_0_to_50: string;
113
- transitionRampUpLongSharp1_0_to_50: string;
114
- transitionRampUpLongSharp2_0_to_50: string;
115
- transitionRampUpMediumSharp1_0_to_50: string;
116
- transitionRampUpMediumSharp2_0_to_50: string;
117
- transitionRampUpShortSharp1_0_to_50: string;
118
- transitionRampUpShortSharp2_0_to_50: string;
119
- longBuzzForProgrammaticStopping_100: string;
120
- smoothHum1_50: string;
121
- smoothHum2_40: string;
122
- smoothHum3_30: string;
123
- smoothHum4_20: string;
124
- smoothHum5_10: string;
125
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export interface Kinesis {
2
- metric: "kinesis";
3
- label: string;
4
- probability: number;
5
- timestamp: number;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * @hidden
3
- */
4
- export declare type Marker = {
5
- label: string;
6
- timestamp: number;
7
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,21 +0,0 @@
1
- import { PendingSubscription, Subscription } from "./subscriptions";
2
- /**
3
- * @hidden
4
- */
5
- declare type SubscriptionListener = Function;
6
- /**
7
- * @hidden
8
- */
9
- export declare type MetricValue = {
10
- [label: string]: any;
11
- };
12
- /**
13
- * @hidden
14
- */
15
- export interface Metrics {
16
- next(metricName: string, metricValue: MetricValue): void;
17
- on(subscription: PendingSubscription, callback: Function): SubscriptionListener;
18
- subscribe(subscription: PendingSubscription): Subscription;
19
- unsubscribe(subscription: Subscription, listener: SubscriptionListener): void;
20
- }
21
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
1
- export declare type OAuthConfig = {
2
- clientId: string;
3
- clientSecret?: string;
4
- responseType: "token" | "code";
5
- redirectUri: string;
6
- scope: string[];
7
- state: string;
8
- };
9
- export declare type OAuthQuery = {
10
- clientId: string;
11
- clientSecret: string;
12
- userId: string;
13
- };
14
- export declare type OAuthQueryResult = {
15
- customToken: string;
16
- userId: string;
17
- };
18
- export declare type OAuthRemoveResponse = {
19
- ok: boolean;
20
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,51 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
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[];
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- export interface Settings {
2
- lsl: boolean;
3
- supportAccess: boolean;
4
- activityLogging: boolean;
5
- }
6
- /**
7
- * @hidden
8
- */
9
- export interface ChangeSettings {
10
- lsl?: boolean;
11
- supportAccess?: boolean;
12
- activityLogging?: boolean;
13
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
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 {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,68 +0,0 @@
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 {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,26 +0,0 @@
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
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SLEEP_MODE_REASON = exports.STATUS = void 0;
4
- /**
5
- * @hidden
6
- */
7
- var STATUS;
8
- (function (STATUS) {
9
- STATUS["ONLINE"] = "online";
10
- STATUS["OFFLINE"] = "offline";
11
- STATUS["UPDATING"] = "updating";
12
- STATUS["BOOTING"] = "booting";
13
- STATUS["SHUTTING_OFF"] = "shuttingOff";
14
- })(STATUS = exports.STATUS || (exports.STATUS = {}));
15
- /**
16
- * @hidden
17
- */
18
- var SLEEP_MODE_REASON;
19
- (function (SLEEP_MODE_REASON) {
20
- SLEEP_MODE_REASON["UPDATING"] = "updating";
21
- SLEEP_MODE_REASON["CHARGING"] = "charging";
22
- })(SLEEP_MODE_REASON = exports.SLEEP_MODE_REASON || (exports.SLEEP_MODE_REASON = {}));
@@ -1,15 +0,0 @@
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
- }
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.STREAMING_MODE = exports.STREAMING_TYPE = void 0;
4
- /**
5
- * @hidden
6
- */
7
- var STREAMING_TYPE;
8
- (function (STREAMING_TYPE) {
9
- STREAMING_TYPE["WIFI"] = "wifi";
10
- STREAMING_TYPE["BLUETOOTH"] = "bluetooth";
11
- })(STREAMING_TYPE = exports.STREAMING_TYPE || (exports.STREAMING_TYPE = {}));
12
- /**
13
- * @hidden
14
- */
15
- var STREAMING_MODE;
16
- (function (STREAMING_MODE) {
17
- STREAMING_MODE["WIFI_ONLY"] = "wifi-only";
18
- STREAMING_MODE["WIFI_WITH_BLUETOOTH_FALLBACK"] = "wifi-with-bluetooth-fallback";
19
- STREAMING_MODE["BLUETOOTH_WITH_WIFI_FALLBACK"] = "bluetooth-with-wifi-fallback";
20
- })(STREAMING_MODE = exports.STREAMING_MODE || (exports.STREAMING_MODE = {}));
@@ -1,23 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- export declare type UserDevice = {
2
- claimedOn: number;
3
- };
4
- export declare type UserDevices = {
5
- [deviceId: string]: UserDevice;
6
- };
7
- /**
8
- * @hidden
9
- */
10
- export declare type UserClaims = {
11
- [claimName: string]: boolean | string;
12
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
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;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.exceededMaxItems = exports.locationNotFound = exports.metricNotSupportedByModel = exports.mustSelectDevice = exports.prefix = void 0;
4
- exports.prefix = "Neurosity SDK: ";
5
- exports.mustSelectDevice = new Error(`${exports.prefix}A device must be selected. Make sure to call "neurosity.selectDevice()"`);
6
- const metricNotSupportedByModel = (metric, modelVersion) => {
7
- return new Error(`${exports.prefix}${metric} not supported on model version ${modelVersion}. See docs.neurosity.co for more info.`);
8
- };
9
- exports.metricNotSupportedByModel = metricNotSupportedByModel;
10
- const locationNotFound = (location, modelVersion) => {
11
- return new Error(`${exports.prefix}${location} location not supported on model version ${modelVersion}. Check spelling or see docs.neurosity.co for more info.`);
12
- };
13
- exports.locationNotFound = locationNotFound;
14
- const exceededMaxItems = (maxItems) => {
15
- return new Error(`${exports.prefix}Maximum items in array is ${maxItems}`);
16
- };
17
- exports.exceededMaxItems = exceededMaxItems;
@@ -1,3 +0,0 @@
1
- import { MonoTypeOperatorFunction } from "rxjs";
2
- import { DeviceStatus } from "../types/status";
3
- export declare function filterInternalKeys(): MonoTypeOperatorFunction<DeviceStatus>;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.filterInternalKeys = void 0;
4
- const rxjs_1 = require("rxjs");
5
- const operators_1 = require("rxjs/operators");
6
- function filterInternalKeys() {
7
- return (0, rxjs_1.pipe)((0, operators_1.map)((status) => {
8
- if (!status) {
9
- return status;
10
- }
11
- // remove internal properties that start with "__"
12
- const filteredStatus = Object.entries(status).reduce((acc, [key, value]) => {
13
- if (!key.startsWith("__")) {
14
- acc[key] = value;
15
- }
16
- return acc;
17
- }, {});
18
- return filteredStatus;
19
- }));
20
- }
21
- exports.filterInternalKeys = filterInternalKeys;