@neurosity/sdk 7.0.1 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/dist/index.js +2155 -970
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +2155 -970
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/neurosity.iife.js +2155 -970
  6. package/dist/neurosity.iife.js.map +1 -1
  7. package/dist/neurosity.umd.js +2155 -970
  8. package/dist/neurosity.umd.js.map +1 -1
  9. package/dist/types/Neurosity.d.ts +102 -0
  10. package/dist/types/Neurosity.d.ts.map +1 -0
  11. package/dist/types/api/bluetooth/BluetoothClient.d.ts +77 -0
  12. package/dist/types/api/bluetooth/BluetoothClient.d.ts.map +1 -0
  13. package/dist/types/api/bluetooth/BluetoothTransport.d.ts +31 -0
  14. package/dist/types/api/bluetooth/BluetoothTransport.d.ts.map +1 -0
  15. package/dist/types/api/bluetooth/constants.d.ts +5 -0
  16. package/dist/types/api/bluetooth/constants.d.ts.map +1 -0
  17. package/dist/types/api/bluetooth/index.d.ts +6 -0
  18. package/dist/types/api/bluetooth/index.d.ts.map +1 -0
  19. package/dist/types/api/bluetooth/react-native/ReactNativeTransport.d.ts +73 -0
  20. package/dist/types/api/bluetooth/react-native/ReactNativeTransport.d.ts.map +1 -0
  21. package/dist/types/api/bluetooth/react-native/index.d.ts +3 -0
  22. package/dist/types/api/bluetooth/react-native/index.d.ts.map +1 -0
  23. package/dist/types/api/bluetooth/react-native/types/BleManagerTypes.d.ts +64 -0
  24. package/dist/types/api/bluetooth/react-native/types/BleManagerTypes.d.ts.map +1 -0
  25. package/dist/types/api/bluetooth/react-native/types/ReactNativeTypes.d.ts +41 -0
  26. package/dist/types/api/bluetooth/react-native/types/ReactNativeTypes.d.ts.map +1 -0
  27. package/dist/types/api/bluetooth/react-native/types/index.d.ts +3 -0
  28. package/dist/types/api/bluetooth/react-native/types/index.d.ts.map +1 -0
  29. package/dist/types/api/bluetooth/types/index.d.ts +21 -0
  30. package/dist/types/api/bluetooth/types/index.d.ts.map +1 -0
  31. package/dist/types/api/bluetooth/utils/binaryBufferToEpoch.d.ts +10 -0
  32. package/dist/types/api/bluetooth/utils/binaryBufferToEpoch.d.ts.map +1 -0
  33. package/dist/types/api/bluetooth/utils/create6DigitPin.d.ts +2 -0
  34. package/dist/types/api/bluetooth/utils/create6DigitPin.d.ts.map +1 -0
  35. package/dist/types/api/bluetooth/utils/csvBufferToEpoch.d.ts +6 -0
  36. package/dist/types/api/bluetooth/utils/csvBufferToEpoch.d.ts.map +1 -0
  37. package/dist/types/api/bluetooth/utils/decodeJSONChunks.d.ts +10 -0
  38. package/dist/types/api/bluetooth/utils/decodeJSONChunks.d.ts.map +1 -0
  39. package/dist/types/api/bluetooth/utils/osHasBluetoothSupport.d.ts +3 -0
  40. package/dist/types/api/bluetooth/utils/osHasBluetoothSupport.d.ts.map +1 -0
  41. package/dist/types/api/bluetooth/utils/stitch.d.ts +6 -0
  42. package/dist/types/api/bluetooth/utils/stitch.d.ts.map +1 -0
  43. package/dist/types/api/bluetooth/utils/textCodec.d.ts +11 -0
  44. package/dist/types/api/bluetooth/utils/textCodec.d.ts.map +1 -0
  45. package/dist/types/api/bluetooth/web/WebBluetoothTransport.d.ts +48 -0
  46. package/dist/types/api/bluetooth/web/WebBluetoothTransport.d.ts.map +1 -0
  47. package/dist/types/api/bluetooth/web/isMaybeWebWorkerContext.d.ts +2 -0
  48. package/dist/types/api/bluetooth/web/isMaybeWebWorkerContext.d.ts.map +1 -0
  49. package/dist/types/api/bluetooth/web/isWebBluetoothSupported.d.ts +2 -0
  50. package/dist/types/api/bluetooth/web/isWebBluetoothSupported.d.ts.map +1 -0
  51. package/dist/types/api/firebase/FirebaseApp.d.ts +13 -0
  52. package/dist/types/api/firebase/FirebaseApp.d.ts.map +1 -0
  53. package/dist/types/api/firebase/FirebaseDevice.d.ts +35 -0
  54. package/dist/types/api/firebase/FirebaseDevice.d.ts.map +1 -0
  55. package/dist/types/api/firebase/FirebaseUser.d.ts +50 -0
  56. package/dist/types/api/firebase/FirebaseUser.d.ts.map +1 -0
  57. package/dist/types/api/firebase/config.d.ts +9 -0
  58. package/dist/types/api/firebase/config.d.ts.map +1 -0
  59. package/dist/types/api/firebase/deviceStore.d.ts +24 -0
  60. package/dist/types/api/firebase/deviceStore.d.ts.map +1 -0
  61. package/dist/types/api/firebase/index.d.ts +4 -0
  62. package/dist/types/api/firebase/index.d.ts.map +1 -0
  63. package/dist/types/api/https/config.d.ts +2 -0
  64. package/dist/types/api/https/config.d.ts.map +1 -0
  65. package/dist/types/api/https/createOAuthURL.d.ts +4 -0
  66. package/dist/types/api/https/createOAuthURL.d.ts.map +1 -0
  67. package/dist/types/api/https/getOAuthToken.d.ts +4 -0
  68. package/dist/types/api/https/getOAuthToken.d.ts.map +1 -0
  69. package/dist/types/api/https/utils.d.ts +3 -0
  70. package/dist/types/api/https/utils.d.ts.map +1 -0
  71. package/dist/types/api/index.d.ts +74 -0
  72. package/dist/types/api/index.d.ts.map +1 -0
  73. package/dist/types/index.d.ts +4 -0
  74. package/dist/types/index.d.ts.map +1 -0
  75. package/dist/types/subscriptions/SubscriptionManager.d.ts +9 -0
  76. package/dist/types/subscriptions/SubscriptionManager.d.ts.map +1 -0
  77. package/dist/types/timesync/Timesync.d.ts +21 -0
  78. package/dist/types/timesync/Timesync.d.ts.map +1 -0
  79. package/dist/types/timesync/index.d.ts +2 -0
  80. package/dist/types/timesync/index.d.ts.map +1 -0
  81. package/dist/types/types/accelerometer.d.ts +12 -0
  82. package/dist/types/types/accelerometer.d.ts.map +1 -0
  83. package/dist/types/types/actions.d.ts +11 -0
  84. package/dist/types/types/actions.d.ts.map +1 -0
  85. package/dist/types/types/apiKey.d.ts +31 -0
  86. package/dist/types/types/apiKey.d.ts.map +1 -0
  87. package/dist/types/types/awareness.d.ts +2 -0
  88. package/dist/types/types/awareness.d.ts.map +1 -0
  89. package/dist/types/types/brainwaves.d.ts +40 -0
  90. package/dist/types/types/brainwaves.d.ts.map +1 -0
  91. package/dist/types/types/calm.d.ts +7 -0
  92. package/dist/types/types/calm.d.ts.map +1 -0
  93. package/dist/types/types/client.d.ts +20 -0
  94. package/dist/types/types/client.d.ts.map +1 -0
  95. package/dist/types/types/credentials.d.ts +16 -0
  96. package/dist/types/types/credentials.d.ts.map +1 -0
  97. package/dist/types/types/deviceInfo.d.ts +20 -0
  98. package/dist/types/types/deviceInfo.d.ts.map +1 -0
  99. package/dist/types/types/epoch.d.ts +10 -0
  100. package/dist/types/types/epoch.d.ts.map +1 -0
  101. package/dist/types/types/experiment.d.ts +10 -0
  102. package/dist/types/types/experiment.d.ts.map +1 -0
  103. package/dist/types/types/focus.d.ts +7 -0
  104. package/dist/types/types/focus.d.ts.map +1 -0
  105. package/dist/types/types/hapticEffects.d.ts +126 -0
  106. package/dist/types/types/hapticEffects.d.ts.map +1 -0
  107. package/dist/types/types/index.d.ts +27 -0
  108. package/dist/types/types/index.d.ts.map +1 -0
  109. package/dist/types/types/kinesis.d.ts +7 -0
  110. package/dist/types/types/kinesis.d.ts.map +1 -0
  111. package/dist/types/types/marker.d.ts +5 -0
  112. package/dist/types/types/marker.d.ts.map +1 -0
  113. package/dist/types/types/metrics.d.ts +13 -0
  114. package/dist/types/types/metrics.d.ts.map +1 -0
  115. package/dist/types/types/oauth.d.ts +21 -0
  116. package/dist/types/types/oauth.d.ts.map +1 -0
  117. package/dist/types/types/options.d.ts +25 -0
  118. package/dist/types/types/options.d.ts.map +1 -0
  119. package/dist/types/types/recording.d.ts +26 -0
  120. package/dist/types/types/recording.d.ts.map +1 -0
  121. package/dist/types/types/sample.d.ts +10 -0
  122. package/dist/types/types/sample.d.ts.map +1 -0
  123. package/dist/types/types/settings.d.ts +8 -0
  124. package/dist/types/types/settings.d.ts.map +1 -0
  125. package/dist/types/types/signalQuality.d.ts +9 -0
  126. package/dist/types/types/signalQuality.d.ts.map +1 -0
  127. package/dist/types/types/signalQualityV2.d.ts +14 -0
  128. package/dist/types/types/signalQualityV2.d.ts.map +1 -0
  129. package/dist/types/types/skill.d.ts +45 -0
  130. package/dist/types/types/skill.d.ts.map +1 -0
  131. package/dist/types/types/status.d.ts +21 -0
  132. package/dist/types/types/status.d.ts.map +1 -0
  133. package/dist/types/types/streaming.d.ts +10 -0
  134. package/dist/types/types/streaming.d.ts.map +1 -0
  135. package/dist/types/types/subscriptions.d.ts +15 -0
  136. package/dist/types/types/subscriptions.d.ts.map +1 -0
  137. package/dist/types/types/training.d.ts +14 -0
  138. package/dist/types/types/training.d.ts.map +1 -0
  139. package/dist/types/types/user.d.ts +10 -0
  140. package/dist/types/types/user.d.ts.map +1 -0
  141. package/dist/types/utils/errors.d.ts +6 -0
  142. package/dist/types/utils/errors.d.ts.map +1 -0
  143. package/dist/types/utils/filterInternalKeys.d.ts +4 -0
  144. package/dist/types/utils/filterInternalKeys.d.ts.map +1 -0
  145. package/dist/types/utils/hapticEffects.d.ts +124 -0
  146. package/dist/types/utils/hapticEffects.d.ts.map +1 -0
  147. package/dist/types/utils/heartbeat.d.ts +5 -0
  148. package/dist/types/utils/heartbeat.d.ts.map +1 -0
  149. package/dist/types/utils/index.d.ts +14 -0
  150. package/dist/types/utils/index.d.ts.map +1 -0
  151. package/dist/types/utils/is-node.d.ts +2 -0
  152. package/dist/types/utils/is-node.d.ts.map +1 -0
  153. package/dist/types/utils/metrics.d.ts +4 -0
  154. package/dist/types/utils/metrics.d.ts.map +1 -0
  155. package/dist/types/utils/permissions.d.ts +16 -0
  156. package/dist/types/utils/permissions.d.ts.map +1 -0
  157. package/dist/types/utils/pick.d.ts +2 -0
  158. package/dist/types/utils/pick.d.ts.map +1 -0
  159. package/dist/types/utils/pipes.d.ts +18 -0
  160. package/dist/types/utils/pipes.d.ts.map +1 -0
  161. package/dist/types/utils/platform.d.ts +31 -0
  162. package/dist/types/utils/platform.d.ts.map +1 -0
  163. package/dist/types/utils/subscription.d.ts +7 -0
  164. package/dist/types/utils/subscription.d.ts.map +1 -0
  165. package/dist/types/utils/transferDevice.d.ts +10 -0
  166. package/dist/types/utils/transferDevice.d.ts.map +1 -0
  167. package/dist/types/utils/whileOnline.d.ts +9 -0
  168. package/dist/types/utils/whileOnline.d.ts.map +1 -0
  169. package/package.json +13 -9
  170. package/dist/index.d.ts +0 -1067
@@ -0,0 +1,20 @@
1
+ export type OSVersion = string;
2
+ export interface DeviceInfo {
3
+ deviceId: string;
4
+ deviceNickname: string;
5
+ channelNames: string[];
6
+ channels: number;
7
+ samplingRate: number;
8
+ manufacturer: string;
9
+ model: string;
10
+ modelName: string;
11
+ modelVersion: string;
12
+ osVersion: OSVersion;
13
+ apiVersion: string;
14
+ emulator?: boolean;
15
+ }
16
+ type DeviceSelectorKeyValue = [string, string | number | string[]];
17
+ type DeviceSelectorFunction = (devices: DeviceInfo[]) => DeviceInfo;
18
+ export type DeviceSelector = DeviceSelectorKeyValue | DeviceSelectorFunction;
19
+ export {};
20
+ //# sourceMappingURL=deviceInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceInfo.d.ts","sourceRoot":"","sources":["../../../src/types/deviceInfo.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,KAAK,sBAAsB,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;AACnE,KAAK,sBAAsB,GAAG,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,UAAU,CAAC;AAEpE,MAAM,MAAM,cAAc,GAAG,sBAAsB,GAAG,sBAAsB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Marker } from "./marker";
2
+ export type Epoch = {
3
+ data: number[];
4
+ info?: {
5
+ channelNames?: string[];
6
+ samplingRate?: number;
7
+ markers?: Marker[];
8
+ };
9
+ };
10
+ //# sourceMappingURL=epoch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"epoch.d.ts","sourceRoot":"","sources":["../../../src/types/epoch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAKlC,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,CAAC,EAAE;QACL,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QACxB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;KACpB,CAAC;CACH,CAAC"}
@@ -0,0 +1,10 @@
1
+ export type Experiment = {
2
+ deviceId: string;
3
+ id: string;
4
+ labels: string[];
5
+ name: string;
6
+ timestamp: number;
7
+ totalTrials: number;
8
+ userId: string;
9
+ };
10
+ //# sourceMappingURL=experiment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"experiment.d.ts","sourceRoot":"","sources":["../../../src/types/experiment.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export interface Focus {
2
+ metric: "awareness";
3
+ label: "focus";
4
+ probability: number;
5
+ timestamp: number;
6
+ }
7
+ //# sourceMappingURL=focus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../../../src/types/focus.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,126 @@
1
+ export 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
+ };
126
+ //# sourceMappingURL=hapticEffects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hapticEffects.d.ts","sourceRoot":"","sources":["../../../src/types/hapticEff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CAAkC,EAAE,MAAM,CAAC;IAC3C,oCAAoC,EAAE,MAAM,CAAC;IAC7C,oCAAoC,EAAE,MAAM,CAAC;IAC7C,mCAAmC,EAAE,MAAM,CAAC;IAC5C,mCAAmC,EAAE,MAAM,CAAC;IAC5C,mCAAmC,EAAE,MAAM,CAAC;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -0,0 +1,27 @@
1
+ export * from "./accelerometer";
2
+ export * from "./actions";
3
+ export * from "./awareness";
4
+ export * from "./brainwaves";
5
+ export * from "./calm";
6
+ export * from "./client";
7
+ export * from "./credentials";
8
+ export * from "./deviceInfo";
9
+ export * from "./experiment";
10
+ export * from "./focus";
11
+ export * from "./hapticEffects";
12
+ export * from "./kinesis";
13
+ export * from "./marker";
14
+ export * from "./metrics";
15
+ export * from "./oauth";
16
+ export * from "./options";
17
+ export * from "./sample";
18
+ export * from "./settings";
19
+ export * from "./recording";
20
+ export * from "./signalQuality";
21
+ export * from "./signalQualityV2";
22
+ export * from "./status";
23
+ export * from "./streaming";
24
+ export * from "./subscriptions";
25
+ export * from "./training";
26
+ export * from "./user";
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,7 @@
1
+ export interface Kinesis {
2
+ metric: "kinesis";
3
+ label: string;
4
+ probability: number;
5
+ timestamp: number;
6
+ }
7
+ //# sourceMappingURL=kinesis.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kinesis.d.ts","sourceRoot":"","sources":["../../../src/types/kinesis.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,5 @@
1
+ export type Marker = {
2
+ label: string;
3
+ timestamp: number;
4
+ };
5
+ //# sourceMappingURL=marker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marker.d.ts","sourceRoot":"","sources":["../../../src/types/marker.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { PendingSubscription, Subscription } from "./subscriptions";
2
+ type SubscriptionListener = Function;
3
+ export type MetricValue = {
4
+ [label: string]: any;
5
+ };
6
+ export interface Metrics {
7
+ next(metricName: string, metricValue: MetricValue): void;
8
+ on(subscription: PendingSubscription, callback: Function): SubscriptionListener;
9
+ subscribe(subscription: PendingSubscription): Subscription;
10
+ unsubscribe(subscription: Subscription, listener: SubscriptionListener): void;
11
+ }
12
+ export {};
13
+ //# sourceMappingURL=metrics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../../src/types/metrics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAKpE,KAAK,oBAAoB,GAAG,QAAQ,CAAC;AAKrC,MAAM,MAAM,WAAW,GAAG;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAKnD,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IACzD,EAAE,CACA,YAAY,EAAE,mBAAmB,EACjC,QAAQ,EAAE,QAAQ,GACjB,oBAAoB,CAAC;IACxB,SAAS,CAAC,YAAY,EAAE,mBAAmB,GAAG,YAAY,CAAC;IAC3D,WAAW,CAAC,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,oBAAoB,GAAG,IAAI,CAAC;CAC/E"}
@@ -0,0 +1,21 @@
1
+ export type OAuthConfig = {
2
+ clientId: string;
3
+ clientSecret?: string;
4
+ responseType: "token" | "code";
5
+ redirectUri: string;
6
+ scope: string[];
7
+ state: string;
8
+ };
9
+ export type OAuthQuery = {
10
+ clientId: string;
11
+ clientSecret: string;
12
+ userId: string;
13
+ };
14
+ export type OAuthQueryResult = {
15
+ customToken: string;
16
+ userId: string;
17
+ };
18
+ export type OAuthRemoveResponse = {
19
+ ok: boolean;
20
+ };
21
+ //# sourceMappingURL=oauth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../src/types/oauth.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,OAAO,GAAG,MAAM,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,OAAO,CAAC;CACb,CAAC"}
@@ -0,0 +1,25 @@
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
+ emulator?: boolean;
12
+ emulatorHost?: string;
13
+ emulatorAuthPort?: number;
14
+ emulatorDatabasePort?: number;
15
+ emulatorOptions?: {
16
+ mockUserToken?: any;
17
+ };
18
+ emulatorFunctionsPort?: number;
19
+ emulatorFirestorePort?: number;
20
+ skill?: Skill;
21
+ }
22
+ export interface SDKDependencies {
23
+ subscriptionManager: SubscriptionManager;
24
+ }
25
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/types/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,aAAa,CAAC,EAAE,cAAc,CAAC;IAI/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IAInB,YAAY,CAAC,EAAE,MAAM,CAAC;IAItB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAI1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAI9B,eAAe,CAAC,EAAE;QAChB,aAAa,CAAC,EAAE,GAAG,CAAC;KACrB,CAAC;IAIF,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAI/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAI/B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAKD,MAAM,WAAW,eAAe;IAC9B,mBAAmB,EAAE,mBAAmB,CAAC;CAC1C"}
@@ -0,0 +1,26 @@
1
+ import { Observable } from "rxjs";
2
+ export interface RecordingOptions {
3
+ name?: string;
4
+ label: string;
5
+ duration: number;
6
+ experimentId?: string;
7
+ }
8
+ export interface StartRecordingOptions {
9
+ name?: string;
10
+ label: string;
11
+ maxDuration: number;
12
+ experimentId?: string;
13
+ }
14
+ export interface RecordingResult {
15
+ ok: boolean;
16
+ id?: string;
17
+ cloudUpload?: boolean;
18
+ error?: string;
19
+ }
20
+ export interface RecordingHandle {
21
+ elapsed$: Observable<number>;
22
+ stop(): Promise<RecordingResult>;
23
+ cancel(): Promise<void>;
24
+ result: Promise<RecordingResult>;
25
+ }
26
+ //# sourceMappingURL=recording.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recording.d.ts","sourceRoot":"","sources":["../../../src/types/recording.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,WAAW,gBAAgB;IAE/B,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,MAAM,CAAC;IAEjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IAEpC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,KAAK,EAAE,MAAM,CAAC;IAEd,WAAW,EAAE,MAAM,CAAC;IAEpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,eAAe;IAE9B,EAAE,EAAE,OAAO,CAAC;IAEZ,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAE9B,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IAE7B,IAAI,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC;IAEjC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAExB,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CAClC"}
@@ -0,0 +1,10 @@
1
+ import { Marker } from "./marker";
2
+ export type Sample = {
3
+ data: number[];
4
+ timestamp: number;
5
+ count?: number;
6
+ marker?: Marker;
7
+ info?: any;
8
+ };
9
+ export type CSVSample = number[];
10
+ //# sourceMappingURL=sample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sample.d.ts","sourceRoot":"","sources":["../../../src/types/sample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAKlC,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ,CAAC;AAKF,MAAM,MAAM,SAAS,GAAG,MAAM,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ export interface Settings {
2
+ lsl?: boolean;
3
+ osc?: boolean;
4
+ supportAccess?: boolean;
5
+ activityLogging?: boolean;
6
+ researchProgram?: boolean;
7
+ }
8
+ //# sourceMappingURL=settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/types/settings.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B"}
@@ -0,0 +1,9 @@
1
+ type ChannelQuality = {
2
+ standardDeviation: number;
3
+ status: "great" | "good" | "bad" | "noContact";
4
+ };
5
+ export interface SignalQuality {
6
+ [channelName: string]: ChannelQuality;
7
+ }
8
+ export {};
9
+ //# sourceMappingURL=signalQuality.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signalQuality.d.ts","sourceRoot":"","sources":["../../../src/types/signalQuality.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc,GAAG;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,WAAW,CAAC;CAChD,CAAC;AAOF,MAAM,WAAW,aAAa;IAC5B,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CAAC;CACvC"}
@@ -0,0 +1,14 @@
1
+ export type SignalStatus = {
2
+ score: number;
3
+ standardDeviation: number;
4
+ spectrumSlope: number;
5
+ status: "adequate" | "degraded";
6
+ };
7
+ export interface SignalQualityV2 {
8
+ timestamp: number;
9
+ overall: SignalStatus;
10
+ byChannel: {
11
+ [channelName: string]: SignalStatus;
12
+ };
13
+ }
14
+ //# sourceMappingURL=signalQualityV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signalQualityV2.d.ts","sourceRoot":"","sources":["../../../src/types/signalQualityV2.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IAEzB,KAAK,EAAE,MAAM,CAAC;IAEd,iBAAiB,EAAE,MAAM,CAAC;IAE1B,aAAa,EAAE,MAAM,CAAC;IAEtB,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;CACjC,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,YAAY,CAAC;IAEtB,SAAS,EAAE;QACT,CAAC,WAAW,EAAE,MAAM,GAAG,YAAY,CAAC;KACrC,CAAC;CACH"}
@@ -0,0 +1,45 @@
1
+ import { Observable } from "rxjs";
2
+ type SkillProps = {
3
+ [key: string]: string | number | boolean;
4
+ };
5
+ export interface Skill {
6
+ id: string;
7
+ bundleId: string;
8
+ spec: string;
9
+ name: string;
10
+ description: string;
11
+ props?: SkillProps;
12
+ organization?: string;
13
+ metrics: string[];
14
+ userId: string;
15
+ timestamp: number;
16
+ status: string;
17
+ thumbnail: string;
18
+ }
19
+ export interface DeviceSkill {
20
+ id: string;
21
+ bundleId: string;
22
+ installedDate: number;
23
+ manifest: {
24
+ [key: string]: any;
25
+ };
26
+ status: string;
27
+ }
28
+ type SkillMetric = {
29
+ [key: string]: any;
30
+ };
31
+ interface SkillMetricNext {
32
+ next(value: SkillMetric): void;
33
+ }
34
+ export interface SkillInstance {
35
+ props?: SkillProps;
36
+ metric(metric: string): Observable<SkillMetric> | SkillMetricNext;
37
+ }
38
+ export interface SkillSubscription {
39
+ unsubscribe(): void;
40
+ }
41
+ export interface SkillsClient {
42
+ get: (id: string) => Promise<DeviceSkill>;
43
+ }
44
+ export {};
45
+ //# sourceMappingURL=skill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../../src/types/skill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAKlC,KAAK,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAK/D,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAKD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;CAChB;AAKD,KAAK,WAAW,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAK1C,UAAU,eAAe;IACvB,IAAI,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CAAC;CAChC;AAKD,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,GAAG,eAAe,CAAC;CACnE;AAKD,MAAM,WAAW,iBAAiB;IAChC,WAAW,IAAI,IAAI,CAAC;CACrB;AAKD,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;CAC3C"}
@@ -0,0 +1,21 @@
1
+ export declare enum STATUS {
2
+ ONLINE = "online",
3
+ OFFLINE = "offline",
4
+ UPDATING = "updating",
5
+ BOOTING = "booting",
6
+ SHUTTING_OFF = "shuttingOff"
7
+ }
8
+ export declare enum SLEEP_MODE_REASON {
9
+ UPDATING = "updating",
10
+ CHARGING = "charging"
11
+ }
12
+ export interface DeviceStatus {
13
+ battery: number;
14
+ charging: boolean;
15
+ state: STATUS;
16
+ sleepMode: boolean;
17
+ sleepModeReason: SLEEP_MODE_REASON | null;
18
+ lastHeartbeat: number;
19
+ ssid: string;
20
+ }
21
+ //# sourceMappingURL=status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/types/status.ts"],"names":[],"mappings":"AAGA,oBAAY,MAAM;IAChB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,YAAY,gBAAgB;CAC7B;AAKD,oBAAY,iBAAiB;IAC3B,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1,10 @@
1
+ export declare enum STREAMING_TYPE {
2
+ WIFI = "wifi",
3
+ BLUETOOTH = "bluetooth"
4
+ }
5
+ export declare enum STREAMING_MODE {
6
+ WIFI_ONLY = "wifi-only",
7
+ WIFI_WITH_BLUETOOTH_FALLBACK = "wifi-with-bluetooth-fallback",
8
+ BLUETOOTH_WITH_WIFI_FALLBACK = "bluetooth-with-wifi-fallback"
9
+ }
10
+ //# sourceMappingURL=streaming.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streaming.d.ts","sourceRoot":"","sources":["../../../src/types/streaming.ts"],"names":[],"mappings":"AAGA,oBAAY,cAAc;IACxB,IAAI,SAAS;IACb,SAAS,cAAc;CACxB;AAED,oBAAY,cAAc;IACxB,SAAS,cAAc;IACvB,4BAA4B,iCAAiC;IAC7D,4BAA4B,iCAAiC;CAC9D"}
@@ -0,0 +1,15 @@
1
+ export interface PendingSubscription {
2
+ metric: string;
3
+ labels: string[];
4
+ atomic: boolean;
5
+ serverType?: string;
6
+ }
7
+ export interface Subscription extends PendingSubscription {
8
+ id: string;
9
+ clientId: string;
10
+ serverType: string;
11
+ }
12
+ export interface Subscriptions {
13
+ [id: string]: Subscription;
14
+ }
15
+ //# sourceMappingURL=subscriptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../src/types/subscriptions.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAKD,MAAM,WAAW,YAAa,SAAQ,mBAAmB;IACvD,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AAKD,MAAM,WAAW,aAAa;IAC5B,CAAC,EAAE,EAAE,MAAM,GAAG,YAAY,CAAC;CAC5B"}
@@ -0,0 +1,14 @@
1
+ export interface TrainingRecording {
2
+ experimentId: string;
3
+ metric: string;
4
+ label: string;
5
+ fit?: boolean;
6
+ baseline?: boolean;
7
+ timestamp?: number;
8
+ }
9
+ export interface Training {
10
+ record(training: TrainingRecording): void;
11
+ stop(training: TrainingRecording): void;
12
+ stopAll(): void;
13
+ }
14
+ //# sourceMappingURL=training.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"training.d.ts","sourceRoot":"","sources":["../../../src/types/training.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAKD,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC1C,IAAI,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACxC,OAAO,IAAI,IAAI,CAAC;CACjB"}
@@ -0,0 +1,10 @@
1
+ export type UserDevice = {
2
+ claimedOn: number;
3
+ };
4
+ export type UserDevices = {
5
+ [deviceId: string]: UserDevice;
6
+ };
7
+ export type UserClaims = {
8
+ [claimName: string]: boolean | string;
9
+ };
10
+ //# sourceMappingURL=user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types/user.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAC;CAChC,CAAC;AAKF,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;CACvC,CAAC"}
@@ -0,0 +1,6 @@
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;
6
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/utils/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,eAAO,MAAM,gBAAgB,OAE5B,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,QAAQ,MAAM,EACd,cAAc,MAAM,UAKrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,UAAU,MAAM,EAAE,cAAc,MAAM,UAItE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,UAAU,MAAM,UAEhD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { MonoTypeOperatorFunction } from "rxjs";
2
+ import { DeviceStatus } from "../types/status";
3
+ export declare function filterInternalKeys(): MonoTypeOperatorFunction<DeviceStatus>;
4
+ //# sourceMappingURL=filterInternalKeys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filterInternalKeys.d.ts","sourceRoot":"","sources":["../../../src/utils/filterInternalKeys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAQ,MAAM,MAAM,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,wBAAgB,kBAAkB,IAAI,wBAAwB,CAAC,YAAY,CAAC,CAqB3E"}