@formant/data-sdk 1.80.6 → 1.80.8

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 (349) hide show
  1. package/dist/data-sdk.cjs.js +131 -66
  2. package/dist/data-sdk.cjs.js.map +1 -1
  3. package/dist/data-sdk.es.js +23669 -22313
  4. package/dist/data-sdk.es.js.map +1 -1
  5. package/dist/data-sdk.es6.js +23669 -22313
  6. package/dist/data-sdk.umd.js +131 -66
  7. package/dist/types/common/browser.d.ts +2 -0
  8. package/dist/types/common/defined.d.ts +3 -0
  9. package/dist/types/common/delay.d.ts +1 -0
  10. package/dist/types/common/duration.d.ts +10 -0
  11. package/dist/types/common/fork.d.ts +5 -0
  12. package/dist/types/data-sdk/src/Account.d.ts +10 -0
  13. package/dist/types/data-sdk/src/App.d.ts +47 -0
  14. package/dist/types/data-sdk/src/AppRtcClientPools.d.ts +20 -0
  15. package/dist/types/data-sdk/src/AudioPlayer.d.ts +23 -0
  16. package/dist/types/data-sdk/src/Authentication.d.ts +2 -0
  17. package/dist/types/data-sdk/src/CaptureStream.d.ts +18 -0
  18. package/dist/types/data-sdk/src/DataChannel.d.ts +30 -0
  19. package/dist/types/data-sdk/src/EventTriggerGroup.d.ts +0 -0
  20. package/dist/types/data-sdk/src/Fleet.d.ts +88 -0
  21. package/dist/types/data-sdk/src/KeyValue.d.ts +8 -0
  22. package/dist/types/data-sdk/src/Manipulator.d.ts +21 -0
  23. package/dist/types/data-sdk/src/RequestDataChannel.d.ts +29 -0
  24. package/dist/types/data-sdk/src/Role.d.ts +8 -0
  25. package/dist/types/data-sdk/src/User.d.ts +8 -0
  26. package/dist/types/data-sdk/src/Views.d.ts +9 -0
  27. package/dist/types/data-sdk/src/api/addDeviceToFleet.d.ts +1 -0
  28. package/dist/types/data-sdk/src/api/aggregateTelemetry.d.ts +3 -0
  29. package/dist/types/data-sdk/src/api/createDevice.d.ts +2 -0
  30. package/dist/types/data-sdk/src/api/createFleet.d.ts +2 -0
  31. package/dist/types/data-sdk/src/api/createShareLink.d.ts +22 -0
  32. package/dist/types/data-sdk/src/api/deleteFleet.d.ts +1 -0
  33. package/dist/types/data-sdk/src/api/disableDevice.d.ts +2 -0
  34. package/dist/types/data-sdk/src/api/eventsCounter.d.ts +7 -0
  35. package/dist/types/data-sdk/src/api/getAllEventTriggerGroup.d.ts +2 -0
  36. package/dist/types/data-sdk/src/api/getAnalyticsModules.d.ts +2 -0
  37. package/dist/types/data-sdk/src/api/getAnalyticsRows.d.ts +8 -0
  38. package/dist/types/data-sdk/src/api/getAnalyticsStreams.d.ts +18 -0
  39. package/dist/types/data-sdk/src/api/getAnnotationCount.d.ts +4 -0
  40. package/dist/types/data-sdk/src/api/getAnnotationCountByIntervals.d.ts +8 -0
  41. package/dist/types/data-sdk/src/api/getCurrentGroup.d.ts +2 -0
  42. package/dist/types/data-sdk/src/api/getDevice.d.ts +2 -0
  43. package/dist/types/data-sdk/src/api/getDevices.d.ts +2 -0
  44. package/dist/types/data-sdk/src/api/getDevicesData.d.ts +2 -0
  45. package/dist/types/data-sdk/src/api/getEvent.d.ts +2 -0
  46. package/dist/types/data-sdk/src/api/getEventTriggerGroup.d.ts +2 -0
  47. package/dist/types/data-sdk/src/api/getFileUrl.d.ts +1 -0
  48. package/dist/types/data-sdk/src/api/getFleet.d.ts +2 -0
  49. package/dist/types/data-sdk/src/api/getFleetDevices.d.ts +1 -0
  50. package/dist/types/data-sdk/src/api/getInterventions.d.ts +2 -0
  51. package/dist/types/data-sdk/src/api/getLatestTelemetry.d.ts +3 -0
  52. package/dist/types/data-sdk/src/api/getModuleConfiguration.d.ts +1 -0
  53. package/dist/types/data-sdk/src/api/getOnlineDevices.d.ts +2 -0
  54. package/dist/types/data-sdk/src/api/getPeers.d.ts +2 -0
  55. package/dist/types/data-sdk/src/api/getRealtimeDevices.d.ts +2 -0
  56. package/dist/types/data-sdk/src/api/getRealtimeSessions.d.ts +3 -0
  57. package/dist/types/data-sdk/src/api/getStreams.d.ts +2 -0
  58. package/dist/types/data-sdk/src/api/getTaskReportRows.d.ts +26 -0
  59. package/dist/types/data-sdk/src/api/getTaskreportTables.d.ts +23 -0
  60. package/dist/types/data-sdk/src/api/getTelemetry.d.ts +4 -0
  61. package/dist/types/data-sdk/src/api/getViews.d.ts +2 -0
  62. package/dist/types/data-sdk/src/api/listFleets.d.ts +2 -0
  63. package/dist/types/data-sdk/src/api/patchDevice.d.ts +2 -0
  64. package/dist/types/data-sdk/src/api/patchEventTriggerGroup.d.ts +2 -0
  65. package/dist/types/data-sdk/src/api/patchFleet.d.ts +2 -0
  66. package/dist/types/data-sdk/src/api/patchStreams.d.ts +2 -0
  67. package/dist/types/data-sdk/src/api/patchView.d.ts +2 -0
  68. package/dist/types/data-sdk/src/api/queryAnalytics.d.ts +43 -0
  69. package/dist/types/data-sdk/src/api/queryDevices.d.ts +3 -0
  70. package/dist/types/data-sdk/src/api/queryDevicesData.d.ts +3 -0
  71. package/dist/types/data-sdk/src/api/queryEvents.d.ts +3 -0
  72. package/dist/types/data-sdk/src/api/queryTelemetry.d.ts +3 -0
  73. package/dist/types/data-sdk/src/api/teleopViews.d.ts +73 -0
  74. package/dist/types/data-sdk/src/cache/StoreCache.d.ts +19 -0
  75. package/dist/types/data-sdk/src/cache/filterDataByTime.d.ts +2 -0
  76. package/dist/types/data-sdk/src/cache/filterDataByType.d.ts +3 -0
  77. package/dist/types/data-sdk/src/cache/queryStore.d.ts +11 -0
  78. package/dist/types/data-sdk/src/config/index.d.ts +2 -0
  79. package/dist/types/data-sdk/src/config/whichFormantApiUrl.d.ts +6 -0
  80. package/dist/types/data-sdk/src/connector/common/Color.d.ts +13 -0
  81. package/dist/types/data-sdk/src/connector/common/LruCache.d.ts +18 -0
  82. package/dist/types/data-sdk/src/connector/common/PromiseLruCache.d.ts +11 -0
  83. package/dist/types/data-sdk/src/connector/common/Timeout.d.ts +1 -0
  84. package/dist/types/data-sdk/src/connector/common/defined.d.ts +3 -0
  85. package/dist/types/data-sdk/src/connector/common/delay.d.ts +1 -0
  86. package/dist/types/data-sdk/src/connector/common/duration.d.ts +10 -0
  87. package/dist/types/data-sdk/src/connector/common/equals.d.ts +1 -0
  88. package/dist/types/data-sdk/src/connector/common/errorToObject.d.ts +14 -0
  89. package/dist/types/data-sdk/src/connector/common/errorToString.d.ts +4 -0
  90. package/dist/types/data-sdk/src/connector/common/filterDataByTime.d.ts +2 -0
  91. package/dist/types/data-sdk/src/connector/common/filterDataByType.d.ts +3 -0
  92. package/dist/types/data-sdk/src/connector/common/flattenPoints.d.ts +8 -0
  93. package/dist/types/data-sdk/src/connector/common/fork.d.ts +5 -0
  94. package/dist/types/data-sdk/src/connector/common/range.d.ts +1 -0
  95. package/dist/types/data-sdk/src/connector/common/throttle.d.ts +1 -0
  96. package/dist/types/data-sdk/src/connector/common/toJsonLines.d.ts +1 -0
  97. package/dist/types/data-sdk/src/connector/common/toStringSafe.d.ts +8 -0
  98. package/dist/types/data-sdk/src/connector/data/BaseUniverseDataConnector.d.ts +69 -0
  99. package/dist/types/data-sdk/src/connector/data/DataFetchWorker.d.ts +1 -0
  100. package/dist/types/data-sdk/src/connector/data/LiveUniverseData.d.ts +36 -0
  101. package/dist/types/data-sdk/src/connector/data/PcdLoaderWorker.d.ts +1 -0
  102. package/dist/types/data-sdk/src/connector/data/StoreCache.d.ts +17 -0
  103. package/dist/types/data-sdk/src/connector/data/TelemetryUniverseData.d.ts +44 -0
  104. package/dist/types/data-sdk/src/connector/data/loader/DataLoader.d.ts +27 -0
  105. package/dist/types/data-sdk/src/connector/data/loader/data-loader.worker.d.ts +1 -0
  106. package/dist/types/data-sdk/src/connector/data/pcd.d.ts +23 -0
  107. package/dist/types/data-sdk/src/connector/data/queryStore.d.ts +12 -0
  108. package/dist/types/data-sdk/src/connector/data/range.d.ts +1 -0
  109. package/dist/types/data-sdk/src/connector/model/IPcd.d.ts +20 -0
  110. package/dist/types/data-sdk/src/connector/model/IPose.d.ts +3 -0
  111. package/dist/types/data-sdk/src/connector/model/IUniverseData.d.ts +124 -0
  112. package/dist/types/data-sdk/src/connector/model/IUniverseGridMap.d.ts +11 -0
  113. package/dist/types/data-sdk/src/connector/model/IUniverseOdometry.d.ts +6 -0
  114. package/dist/types/data-sdk/src/connector/model/IUniversePath.d.ts +3 -0
  115. package/dist/types/data-sdk/src/connector/model/IUniversePointCloud.d.ts +6 -0
  116. package/dist/types/data-sdk/src/devices/BaseDevice.d.ts +47 -0
  117. package/dist/types/data-sdk/src/devices/Device.d.ts +88 -0
  118. package/dist/types/data-sdk/src/devices/ICustomDataChannelCreator.d.ts +4 -0
  119. package/dist/types/data-sdk/src/devices/IRealtimeSubscriber.d.ts +7 -0
  120. package/dist/types/data-sdk/src/devices/IView.d.ts +29 -0
  121. package/dist/types/data-sdk/src/devices/PeerDevice.d.ts +35 -0
  122. package/dist/types/data-sdk/src/devices/device.types.d.ts +115 -0
  123. package/dist/types/data-sdk/src/init.d.ts +1 -0
  124. package/dist/types/data-sdk/src/main.d.ts +176 -0
  125. package/dist/types/data-sdk/src/message-bus/bidirectional/getDate.d.ts +1 -0
  126. package/dist/types/data-sdk/src/message-bus/bidirectional/prompt.d.ts +5 -0
  127. package/dist/types/data-sdk/src/message-bus/listeners/EmbeddedAppMessage.d.ts +54 -0
  128. package/dist/types/data-sdk/src/message-bus/listeners/addAccessTokenRefreshListener.d.ts +1 -0
  129. package/dist/types/data-sdk/src/message-bus/listeners/addChannelDataListener.d.ts +4 -0
  130. package/dist/types/data-sdk/src/message-bus/listeners/addMenuListener.d.ts +1 -0
  131. package/dist/types/data-sdk/src/message-bus/listeners/addModuleConfigurationListener.d.ts +2 -0
  132. package/dist/types/data-sdk/src/message-bus/listeners/addModuleDataListener.d.ts +29 -0
  133. package/dist/types/data-sdk/src/message-bus/listeners/addOverviewDeviceListener.d.ts +2 -0
  134. package/dist/types/data-sdk/src/message-bus/listeners/addStreamLIstener.d.ts +3 -0
  135. package/dist/types/data-sdk/src/message-bus/senders/AppMessage.d.ts +63 -0
  136. package/dist/types/data-sdk/src/message-bus/senders/disableAnalyticsBottomBar.d.ts +1 -0
  137. package/dist/types/data-sdk/src/message-bus/senders/goToDevice.d.ts +1 -0
  138. package/dist/types/data-sdk/src/message-bus/senders/goToTime.d.ts +1 -0
  139. package/dist/types/data-sdk/src/message-bus/senders/refreshAuthToken.d.ts +1 -0
  140. package/dist/types/data-sdk/src/message-bus/senders/requestModuleData.d.ts +1 -0
  141. package/dist/types/data-sdk/src/message-bus/senders/sendAppMessage.d.ts +2 -0
  142. package/dist/types/data-sdk/src/message-bus/senders/sendChannelData.d.ts +1 -0
  143. package/dist/types/data-sdk/src/message-bus/senders/setModuleDateTimeRange.d.ts +1 -0
  144. package/dist/types/data-sdk/src/message-bus/senders/setupModuleMenus.d.ts +3 -0
  145. package/dist/types/data-sdk/src/message-bus/senders/showMessage.d.ts +1 -0
  146. package/dist/types/data-sdk/src/model/AccessLevel.d.ts +5 -0
  147. package/dist/types/data-sdk/src/model/AggregateLevel.d.ts +1 -0
  148. package/dist/types/data-sdk/src/model/AggregateType.d.ts +2 -0
  149. package/dist/types/data-sdk/src/model/AnalyticsAggregateType.d.ts +2 -0
  150. package/dist/types/data-sdk/src/model/AnalyticsChartType.d.ts +2 -0
  151. package/dist/types/data-sdk/src/model/AnnotationAreaType.d.ts +2 -0
  152. package/dist/types/data-sdk/src/model/AnnotationType.d.ts +2 -0
  153. package/dist/types/data-sdk/src/model/CognitoRegion.d.ts +2 -0
  154. package/dist/types/data-sdk/src/model/DeviceType.d.ts +2 -0
  155. package/dist/types/data-sdk/src/model/EventSortableColumn.d.ts +1 -0
  156. package/dist/types/data-sdk/src/model/EventType.d.ts +2 -0
  157. package/dist/types/data-sdk/src/model/HealthStatus.d.ts +2 -0
  158. package/dist/types/data-sdk/src/model/HexRgbColor.d.ts +1 -0
  159. package/dist/types/data-sdk/src/model/IAccount.d.ts +7 -0
  160. package/dist/types/data-sdk/src/model/IAccountTree.d.ts +4 -0
  161. package/dist/types/data-sdk/src/model/IAggregateRow.d.ts +8 -0
  162. package/dist/types/data-sdk/src/model/IAnalyticsModule.d.ts +15 -0
  163. package/dist/types/data-sdk/src/model/IAnalyticsModuleConfiguration.d.ts +6 -0
  164. package/dist/types/data-sdk/src/model/IAnnotation.d.ts +13 -0
  165. package/dist/types/data-sdk/src/model/IAnnotationAreaTypeMap.d.ts +4 -0
  166. package/dist/types/data-sdk/src/model/IAnnotationQuery.d.ts +7 -0
  167. package/dist/types/data-sdk/src/model/IAudioInfo.d.ts +4 -0
  168. package/dist/types/data-sdk/src/model/IBaseEntity.d.ts +7 -0
  169. package/dist/types/data-sdk/src/model/IBaseEvent.d.ts +22 -0
  170. package/dist/types/data-sdk/src/model/IBattery.d.ts +6 -0
  171. package/dist/types/data-sdk/src/model/IBitset.d.ts +4 -0
  172. package/dist/types/data-sdk/src/model/IBoundingBox.d.ts +6 -0
  173. package/dist/types/data-sdk/src/model/IChallenge.d.ts +6 -0
  174. package/dist/types/data-sdk/src/model/IColorRGBA.d.ts +6 -0
  175. package/dist/types/data-sdk/src/model/ICommandDeliveryEvent.d.ts +3 -0
  176. package/dist/types/data-sdk/src/model/ICommandEventBase.d.ts +5 -0
  177. package/dist/types/data-sdk/src/model/ICommandParameter.d.ts +9 -0
  178. package/dist/types/data-sdk/src/model/ICommandPropgress.d.ts +5 -0
  179. package/dist/types/data-sdk/src/model/ICommandRequest.d.ts +9 -0
  180. package/dist/types/data-sdk/src/model/ICommandRequestEvent.d.ts +5 -0
  181. package/dist/types/data-sdk/src/model/ICommandResponse.d.ts +13 -0
  182. package/dist/types/data-sdk/src/model/ICommandResponseEvent.d.ts +3 -0
  183. package/dist/types/data-sdk/src/model/IComment.d.ts +7 -0
  184. package/dist/types/data-sdk/src/model/IConfigurationMap.d.ts +3 -0
  185. package/dist/types/data-sdk/src/model/ICustomEvent.d.ts +5 -0
  186. package/dist/types/data-sdk/src/model/IDataAggregate.d.ts +7 -0
  187. package/dist/types/data-sdk/src/model/IDataPoint.d.ts +7 -0
  188. package/dist/types/data-sdk/src/model/IDatapointEvent.d.ts +3 -0
  189. package/dist/types/data-sdk/src/model/IDevice.d.ts +31 -0
  190. package/dist/types/data-sdk/src/model/IDeviceOfflineEvent.d.ts +3 -0
  191. package/dist/types/data-sdk/src/model/IDeviceOnlineEvent.d.ts +3 -0
  192. package/dist/types/data-sdk/src/model/IDeviceQuery.d.ts +14 -0
  193. package/dist/types/data-sdk/src/model/IDeviceReportedConfigurationState.d.ts +3 -0
  194. package/dist/types/data-sdk/src/model/IDeviceRosState.d.ts +4 -0
  195. package/dist/types/data-sdk/src/model/IDeviceScope.d.ts +5 -0
  196. package/dist/types/data-sdk/src/model/IDeviceState.d.ts +16 -0
  197. package/dist/types/data-sdk/src/model/IDictionary.d.ts +3 -0
  198. package/dist/types/data-sdk/src/model/IEvent.d.ts +18 -0
  199. package/dist/types/data-sdk/src/model/IEventFilter.d.ts +19 -0
  200. package/dist/types/data-sdk/src/model/IEventQuery.d.ts +7 -0
  201. package/dist/types/data-sdk/src/model/IEventSort.d.ts +6 -0
  202. package/dist/types/data-sdk/src/model/IEventTriggerGroup.d.ts +13 -0
  203. package/dist/types/data-sdk/src/model/IFieldParametersTypeMap.d.ts +8 -0
  204. package/dist/types/data-sdk/src/model/IFile.d.ts +6 -0
  205. package/dist/types/data-sdk/src/model/IFileInfo.d.ts +6 -0
  206. package/dist/types/data-sdk/src/model/IFilter.d.ts +10 -0
  207. package/dist/types/data-sdk/src/model/IFleet.d.ts +8 -0
  208. package/dist/types/data-sdk/src/model/IGoal.d.ts +5 -0
  209. package/dist/types/data-sdk/src/model/IGoalID.d.ts +3 -0
  210. package/dist/types/data-sdk/src/model/IH264VideoFrame.d.ts +5 -0
  211. package/dist/types/data-sdk/src/model/IHealth.d.ts +4 -0
  212. package/dist/types/data-sdk/src/model/IHwInfo.d.ts +17 -0
  213. package/dist/types/data-sdk/src/model/IImage.d.ts +6 -0
  214. package/dist/types/data-sdk/src/model/IImageAnnotation.d.ts +9 -0
  215. package/dist/types/data-sdk/src/model/IInterventionRequest.d.ts +9 -0
  216. package/dist/types/data-sdk/src/model/IInterventionResponse.d.ts +10 -0
  217. package/dist/types/data-sdk/src/model/IInterventionTypeMap.d.ts +26 -0
  218. package/dist/types/data-sdk/src/model/IJointState.d.ts +8 -0
  219. package/dist/types/data-sdk/src/model/IJoy.d.ts +4 -0
  220. package/dist/types/data-sdk/src/model/IKernelInfo.d.ts +5 -0
  221. package/dist/types/data-sdk/src/model/ILabel.d.ts +4 -0
  222. package/dist/types/data-sdk/src/model/ILabeledPolygon.d.ts +4 -0
  223. package/dist/types/data-sdk/src/model/ILabelingRequestData.d.ts +9 -0
  224. package/dist/types/data-sdk/src/model/ILabelingResponseData.d.ts +4 -0
  225. package/dist/types/data-sdk/src/model/ILocalization.d.ts +14 -0
  226. package/dist/types/data-sdk/src/model/ILocation.d.ts +6 -0
  227. package/dist/types/data-sdk/src/model/IMap.d.ts +10 -0
  228. package/dist/types/data-sdk/src/model/IMarker3D.d.ts +27 -0
  229. package/dist/types/data-sdk/src/model/IMarker3DArray.d.ts +4 -0
  230. package/dist/types/data-sdk/src/model/INetwork.d.ts +4 -0
  231. package/dist/types/data-sdk/src/model/INodeInfo.d.ts +5 -0
  232. package/dist/types/data-sdk/src/model/INumericAggregate.d.ts +7 -0
  233. package/dist/types/data-sdk/src/model/INumericSetAggregateMap.d.ts +5 -0
  234. package/dist/types/data-sdk/src/model/INumericSetEntry.d.ts +5 -0
  235. package/dist/types/data-sdk/src/model/IOdometry.d.ts +7 -0
  236. package/dist/types/data-sdk/src/model/IOnDemandPresenceStreamItemGroup.d.ts +6 -0
  237. package/dist/types/data-sdk/src/model/IOnDemandPresenceTimeRange.d.ts +7 -0
  238. package/dist/types/data-sdk/src/model/IOnDemandState.d.ts +4 -0
  239. package/dist/types/data-sdk/src/model/IOnDemandStreamPresence.d.ts +5 -0
  240. package/dist/types/data-sdk/src/model/IOnDemmandBuffer.d.ts +6 -0
  241. package/dist/types/data-sdk/src/model/IOnvifDevice.d.ts +5 -0
  242. package/dist/types/data-sdk/src/model/IOsInfo.d.ts +6 -0
  243. package/dist/types/data-sdk/src/model/IPath.d.ts +6 -0
  244. package/dist/types/data-sdk/src/model/IPhysicalInterventionMetadata.d.ts +3 -0
  245. package/dist/types/data-sdk/src/model/IPhysicalRequestData.d.ts +8 -0
  246. package/dist/types/data-sdk/src/model/IPhysicalResponsetData.d.ts +3 -0
  247. package/dist/types/data-sdk/src/model/IPointCloud.d.ts +6 -0
  248. package/dist/types/data-sdk/src/model/IPortForwardingSessionRecord.d.ts +3 -0
  249. package/dist/types/data-sdk/src/model/IPoseWithCovariance.d.ts +5 -0
  250. package/dist/types/data-sdk/src/model/IQuaternion.d.ts +6 -0
  251. package/dist/types/data-sdk/src/model/IQuery.d.ts +9 -0
  252. package/dist/types/data-sdk/src/model/IRole.d.ts +9 -0
  253. package/dist/types/data-sdk/src/model/IRosTopic.d.ts +4 -0
  254. package/dist/types/data-sdk/src/model/IRtcPointCloud.d.ts +5 -0
  255. package/dist/types/data-sdk/src/model/IRtcSessionRecord.d.ts +9 -0
  256. package/dist/types/data-sdk/src/model/IScopeFilter.d.ts +6 -0
  257. package/dist/types/data-sdk/src/model/ISelectionRequestData.d.ts +6 -0
  258. package/dist/types/data-sdk/src/model/ISelectionResponseData.d.ts +3 -0
  259. package/dist/types/data-sdk/src/model/IShare.d.ts +16 -0
  260. package/dist/types/data-sdk/src/model/ISheetParameters.d.ts +5 -0
  261. package/dist/types/data-sdk/src/model/ISpreadsheetIdRange.d.ts +4 -0
  262. package/dist/types/data-sdk/src/model/ISqlColumn.d.ts +6 -0
  263. package/dist/types/data-sdk/src/model/ISqlQuery.d.ts +21 -0
  264. package/dist/types/data-sdk/src/model/ISqlResult.d.ts +12 -0
  265. package/dist/types/data-sdk/src/model/ISqlRow.d.ts +5 -0
  266. package/dist/types/data-sdk/src/model/IStatefulEvent.d.ts +5 -0
  267. package/dist/types/data-sdk/src/model/IStream.d.ts +18 -0
  268. package/dist/types/data-sdk/src/model/IStreamAggregateData.d.ts +11 -0
  269. package/dist/types/data-sdk/src/model/IStreamAggregateTypeMap.d.ts +10 -0
  270. package/dist/types/data-sdk/src/model/IStreamColumn.d.ts +7 -0
  271. package/dist/types/data-sdk/src/model/IStreamCurrentValue.d.ts +13 -0
  272. package/dist/types/data-sdk/src/model/IStreamData.d.ts +11 -0
  273. package/dist/types/data-sdk/src/model/IStreamTypeMap.d.ts +27 -0
  274. package/dist/types/data-sdk/src/model/ISystemEvent.d.ts +3 -0
  275. package/dist/types/data-sdk/src/model/ITagParameters.d.ts +3 -0
  276. package/dist/types/data-sdk/src/model/ITagSets.d.ts +3 -0
  277. package/dist/types/data-sdk/src/model/ITaggedEntity.d.ts +5 -0
  278. package/dist/types/data-sdk/src/model/ITaggedUsers.d.ts +4 -0
  279. package/dist/types/data-sdk/src/model/ITags.d.ts +3 -0
  280. package/dist/types/data-sdk/src/model/ITaskReportColumn.d.ts +7 -0
  281. package/dist/types/data-sdk/src/model/ITaskSummary.d.ts +14 -0
  282. package/dist/types/data-sdk/src/model/ITeleopRequestData.d.ts +3 -0
  283. package/dist/types/data-sdk/src/model/ITeleopResponseData.d.ts +4 -0
  284. package/dist/types/data-sdk/src/model/ITeleopSessionRecord.d.ts +3 -0
  285. package/dist/types/data-sdk/src/model/ITransform.d.ts +6 -0
  286. package/dist/types/data-sdk/src/model/ITransformNode.d.ts +7 -0
  287. package/dist/types/data-sdk/src/model/ITriggeredEvent.d.ts +11 -0
  288. package/dist/types/data-sdk/src/model/ITwist.d.ts +5 -0
  289. package/dist/types/data-sdk/src/model/IUser.d.ts +29 -0
  290. package/dist/types/data-sdk/src/model/IUserParameters.d.ts +4 -0
  291. package/dist/types/data-sdk/src/model/IUserScope.d.ts +15 -0
  292. package/dist/types/data-sdk/src/model/IVector2.d.ts +4 -0
  293. package/dist/types/data-sdk/src/model/IVector3.d.ts +5 -0
  294. package/dist/types/data-sdk/src/model/IVideo.d.ts +7 -0
  295. package/dist/types/data-sdk/src/model/IVideoDevice.d.ts +4 -0
  296. package/dist/types/data-sdk/src/model/IView.d.ts +15 -0
  297. package/dist/types/data-sdk/src/model/IdeviceFollower.d.ts +4 -0
  298. package/dist/types/data-sdk/src/model/InetworkInfo.d.ts +4 -0
  299. package/dist/types/data-sdk/src/model/InterventionType.d.ts +2 -0
  300. package/dist/types/data-sdk/src/model/IsoDate.d.ts +1 -0
  301. package/dist/types/data-sdk/src/model/JsonSchema.d.ts +39 -0
  302. package/dist/types/data-sdk/src/model/Marker3DAction.d.ts +2 -0
  303. package/dist/types/data-sdk/src/model/Marker3DType.d.ts +2 -0
  304. package/dist/types/data-sdk/src/model/OnDemandBufferType.d.ts +2 -0
  305. package/dist/types/data-sdk/src/model/Policies.d.ts +35 -0
  306. package/dist/types/data-sdk/src/model/RequiredKeys.d.ts +3 -0
  307. package/dist/types/data-sdk/src/model/Resource.d.ts +2 -0
  308. package/dist/types/data-sdk/src/model/SessionType.d.ts +26 -0
  309. package/dist/types/data-sdk/src/model/Severity.d.ts +2 -0
  310. package/dist/types/data-sdk/src/model/SortOrder.d.ts +1 -0
  311. package/dist/types/data-sdk/src/model/StreamType.d.ts +2 -0
  312. package/dist/types/data-sdk/src/model/TelemetryResult.d.ts +9 -0
  313. package/dist/types/data-sdk/src/model/Timestamp.d.ts +1 -0
  314. package/dist/types/data-sdk/src/model/Uuid.d.ts +1 -0
  315. package/dist/types/data-sdk/src/model/VideoMimeType.d.ts +2 -0
  316. package/dist/types/data-sdk/src/model/accessLevels.d.ts +1 -0
  317. package/dist/types/data-sdk/src/model/aggregateLevels.d.ts +2 -0
  318. package/dist/types/data-sdk/src/model/aggregateTypes.d.ts +1 -0
  319. package/dist/types/data-sdk/src/model/analyticsAggregteTypes.d.ts +1 -0
  320. package/dist/types/data-sdk/src/model/analyticsChartTypes.d.ts +1 -0
  321. package/dist/types/data-sdk/src/model/annotationTypes.d.ts +1 -0
  322. package/dist/types/data-sdk/src/model/cognitoRegions.d.ts +1 -0
  323. package/dist/types/data-sdk/src/model/deviceTypes.d.ts +1 -0
  324. package/dist/types/data-sdk/src/model/eventTypes.d.ts +1 -0
  325. package/dist/types/data-sdk/src/model/healthStatuses.d.ts +1 -0
  326. package/dist/types/data-sdk/src/model/interventionTypes.d.ts +1 -0
  327. package/dist/types/data-sdk/src/model/marker3DActions.d.ts +1 -0
  328. package/dist/types/data-sdk/src/model/marker3DTypes.d.ts +1 -0
  329. package/dist/types/data-sdk/src/model/onDemandBufferTypes.d.ts +1 -0
  330. package/dist/types/data-sdk/src/model/resources.d.ts +1 -0
  331. package/dist/types/data-sdk/src/model/severities.d.ts +1 -0
  332. package/dist/types/data-sdk/src/model/videoMimeTypes.d.ts +1 -0
  333. package/dist/types/data-sdk/src/stores/AuthenticationErrors.d.ts +9 -0
  334. package/dist/types/data-sdk/src/stores/AuthenticationResult.d.ts +15 -0
  335. package/dist/types/data-sdk/src/stores/AuthenticationStore.d.ts +70 -0
  336. package/dist/types/data-sdk/src/stores/IAuthentication.d.ts +6 -0
  337. package/dist/types/data-sdk/src/stores/IAuthenticationStore.d.ts +45 -0
  338. package/dist/types/data-sdk/src/stores/ICheckSsoResult.d.ts +5 -0
  339. package/dist/types/data-sdk/src/stores/IConfirmForgotPasswordRequest.d.ts +5 -0
  340. package/dist/types/data-sdk/src/stores/IRespondToNewPasswordRequiredChallengeRequest.d.ts +5 -0
  341. package/dist/types/data-sdk/src/utils/RtcClientPool.d.ts +25 -0
  342. package/dist/types/data-sdk/src/utils/aggregateFunctionUtils.d.ts +38 -0
  343. package/dist/types/data-sdk/src/utils/getCurrentModuleContext.d.ts +1 -0
  344. package/dist/types/data-sdk/src/utils/isRtcPeer.d.ts +2 -0
  345. package/dist/types/data-sdk/src/utils/numericAggregateUtils.d.ts +26 -0
  346. package/dist/types/data-sdk/src/utils/serializeHash.d.ts +2 -0
  347. package/dist/types/data-sdk/src/utils/stringToArrayBuffer.d.ts +1 -0
  348. package/dist/types/data-sdk/src/utils/timeout.d.ts +1 -0
  349. package/package.json +3 -3
@@ -0,0 +1,124 @@
1
+ import { IBitset } from "../../model/IBitset";
2
+ import { IJointState } from "../../model/IJointState";
3
+ import { ILocation } from "../../model/ILocation";
4
+ import { IMarker3DArray } from "../../model/IMarker3DArray";
5
+ import { INumericSetEntry } from "../../model/INumericSetEntry";
6
+ import { ITransformNode } from "../../model/ITransformNode";
7
+ import { StreamType } from "../../model/StreamType";
8
+ import { IPose } from "./IPose";
9
+ import { IUniverseGridMap } from "./IUniverseGridMap";
10
+ import { IUniverseOdometry } from "./IUniverseOdometry";
11
+ import { IUniversePath } from "./IUniversePath";
12
+ import { IUniversePointCloud } from "./IUniversePointCloud";
13
+ export type DataSourceState = "missing_data" | "connected" | "disconnected" | "connecting" | "disconnecting";
14
+ export declare const NoData: unique symbol;
15
+ export declare const LoadingData: unique symbol;
16
+ export declare const FailedData: unique symbol;
17
+ export type DataStatus = Symbol;
18
+ export type RtcStreamType = "ping" | "pong" | "stream-control" | "streams-info" | "agent-info" | "numeric" | "boolean" | "bitset" | "twist" | "compressed-image" | "h264-video-frame" | "audio-chunk" | "pose" | "goal-id" | "joint-state" | "pose-with-covariance" | "point-cloud" | "marker-array" | "point" | "json-string";
19
+ export type CloseSubscription = () => void;
20
+ export interface UniverseRosDataSource {
21
+ id: string;
22
+ sourceType: "realtime";
23
+ rosTopicName: string;
24
+ rosTopicType: string;
25
+ }
26
+ export interface UniverseHardwareDataSource {
27
+ id: string;
28
+ sourceType: "hardware";
29
+ rtcStreamName: string;
30
+ }
31
+ export interface UniverseTelemetrySource {
32
+ id: string;
33
+ sourceType: "telemetry";
34
+ streamName: string;
35
+ streamType?: StreamType;
36
+ latestDataPoint?: boolean;
37
+ }
38
+ export type UniverseDataSource = UniverseRosDataSource | UniverseTelemetrySource | UniverseHardwareDataSource;
39
+ export interface ITelemetryStream {
40
+ name: string;
41
+ disabled?: boolean;
42
+ validation?: {
43
+ schemaId: string;
44
+ };
45
+ configuration: {
46
+ type: string;
47
+ mapTopic?: string;
48
+ };
49
+ }
50
+ export interface ITelemetryRosStream {
51
+ topicName: string;
52
+ topicType: string;
53
+ }
54
+ export interface IRealtimeStream {
55
+ rtcStreamType: RtcStreamType;
56
+ name: string;
57
+ }
58
+ export interface IUniverseStatistics {
59
+ rtcDevices: {
60
+ deviceId: string;
61
+ deviceName: string;
62
+ totalRtcDataBytes: number;
63
+ }[];
64
+ }
65
+ export interface Interaction {
66
+ deviceId: string;
67
+ id: string;
68
+ name: string;
69
+ description: string;
70
+ icon: string;
71
+ }
72
+ export interface RealtimeButtonConfiguration {
73
+ streamName: string;
74
+ }
75
+ export interface IUniverseData {
76
+ addInteraction: (interaction: Interaction) => void;
77
+ removeInteraction: (id: string) => void;
78
+ getInteractions: () => Interaction[];
79
+ addInteractionsChangedListener: (callback: (interactions: Interaction[]) => void) => () => void;
80
+ addInteractionListener: (callback: (interaction: Interaction) => void) => () => void;
81
+ setTime(time: Date | "live"): void;
82
+ getTime(): Date | "live";
83
+ getTimeMs(): number;
84
+ getLatestTransformTrees(deviceId: string): Promise<{
85
+ streamName: string;
86
+ transformTree: ITransformNode;
87
+ }[]>;
88
+ getLatestLocations(deviceId: string): Promise<{
89
+ streamName: string;
90
+ location: ILocation;
91
+ }[]>;
92
+ getDeviceContexts(): Promise<{
93
+ deviceName: string;
94
+ deviceId: string;
95
+ }[]>;
96
+ getDeviceContextName(deviceId: string): Promise<string | undefined>;
97
+ getTelemetryStreamType(deviceId: string, streamName: string): Promise<string | undefined>;
98
+ getTelemetryStreams(deviceId: string): Promise<ITelemetryStream[]>;
99
+ getTeleopRosStreams(deviceId: string): Promise<ITelemetryRosStream[]>;
100
+ getUrdfs(deviceId: string): Promise<string[]>;
101
+ getHardwareStreams(deviceId: string): Promise<IRealtimeStream[]>;
102
+ subscribeToBitset(deviceId: string, source: UniverseDataSource, callback: (data: IBitset | DataStatus) => void): CloseSubscription;
103
+ subscribeToPointCloud(deviceId: string, source: UniverseDataSource, callback: (data: IUniversePointCloud | DataStatus) => void): CloseSubscription;
104
+ subscribeToOdometry(deviceId: string, source: UniverseDataSource, callback: (data: IUniverseOdometry | DataStatus) => void, trail?: number): CloseSubscription;
105
+ subscribeToPath(deviceId: string, source: UniverseDataSource, callback: (data: IUniversePath | DataStatus) => void): CloseSubscription;
106
+ subscribeToPose(deviceId: string, source: UniverseDataSource, callback: (data: IPose | DataStatus) => void): CloseSubscription;
107
+ subscribeToGeometry(deviceId: string, source: UniverseDataSource, callback: (data: IMarker3DArray | DataStatus) => void): CloseSubscription;
108
+ subscribeToJointState(deviceId: string, source: UniverseDataSource, callback: (data: IJointState | DataStatus) => void): CloseSubscription;
109
+ subscribeToGridMap(deviceId: string, source: UniverseDataSource, callback: (data: IUniverseGridMap | DataStatus) => void): CloseSubscription;
110
+ subscribeToVideo(deviceId: string, source: UniverseDataSource, callback: (frame: HTMLCanvasElement | DataStatus) => void): CloseSubscription;
111
+ subscribeToTransformTree(deviceId: string, source: UniverseDataSource, callback: (data: ITransformNode | DataStatus) => void): CloseSubscription;
112
+ subscribeToLocation(deviceId: string, source: UniverseDataSource, callback: (data: ILocation | DataStatus) => void): CloseSubscription;
113
+ subscribeToJson<T>(deviceId: string, source: UniverseDataSource, callback: (data: T | DataStatus) => void): CloseSubscription;
114
+ subscribeToText(deviceId: string, source: UniverseDataSource, callback: (text: string | DataStatus) => void): CloseSubscription;
115
+ subscribeToNumeric(deviceId: string, source: UniverseDataSource, callback: (num: [number, number][] | DataStatus) => void): CloseSubscription;
116
+ subscribeToNumericSet(deviceId: string, source: UniverseDataSource, callback: (entry: [number, INumericSetEntry[]][] | DataStatus) => void): CloseSubscription;
117
+ getStatistics(): Promise<IUniverseStatistics>;
118
+ subscribeDataSourceStateChange(deviceId: string, source: UniverseDataSource, onDataSourceStateChange?: (state: DataSourceState | DataStatus) => void): CloseSubscription;
119
+ subscribeToImage(deviceId: string, source: UniverseDataSource, callback: (image: HTMLCanvasElement | DataStatus) => void): CloseSubscription;
120
+ sendRealtimePose(deviceId: string, streamName: string, pose: IPose): Promise<void>;
121
+ sendRealtimeBoolean(deviceId: string, streamName: string, value: boolean): Promise<void>;
122
+ sendRealtimeBitset(deviceId: string, streamName: string, bitset: IBitset): Promise<void>;
123
+ sendCommand(deviceId: string, name: string, data?: string): Promise<void>;
124
+ }
@@ -0,0 +1,11 @@
1
+ import { ITransform } from "../../model/ITransform";
2
+ export interface IUniverseGridMap {
3
+ worldToLocal?: ITransform;
4
+ width: number;
5
+ height: number;
6
+ resolution: number;
7
+ origin: ITransform;
8
+ url?: string;
9
+ data?: number[];
10
+ alpha?: number[];
11
+ }
@@ -0,0 +1,6 @@
1
+ import { IPoseWithCovariance } from "../../model/IPoseWithCovariance";
2
+ import { ITransform } from "../../model/ITransform";
3
+ export interface IUniverseOdometry extends IPoseWithCovariance {
4
+ worldToLocal?: ITransform;
5
+ trail?: [number, ITransform][];
6
+ }
@@ -0,0 +1,3 @@
1
+ import { IPath } from "../../model/IPath";
2
+ export interface IUniversePath extends IPath {
3
+ }
@@ -0,0 +1,6 @@
1
+ import { ITransform } from "../../model/ITransform";
2
+ import { IPcd } from "./IPcd";
3
+ export interface IUniversePointCloud {
4
+ pcd?: IPcd;
5
+ worldToLocal?: ITransform;
6
+ }
@@ -0,0 +1,47 @@
1
+ import { IRtcSendConfiguration, IRtcStreamMessage, RtcClient, IRtcPeer } from "@formant/realtime-sdk";
2
+ import { IPingInfo } from "@formant/realtime-sdk/dist/rtc-client/models/IPingInfo";
3
+ import { DataChannel } from "../DataChannel";
4
+ import { EventEmitter } from "eventemitter3";
5
+ import { Manipulator } from "../Manipulator";
6
+ import { BinaryRequestDataChannel, TextRequestDataChannel } from "../RequestDataChannel";
7
+ import { IRealtimeSubscriber } from "./IRealtimeSubscriber";
8
+ import { ICustomDataChannelCreator } from "./ICustomDataChannelCreator";
9
+ import { ConfigurationDocument, RealtimeListener, RealtimeAudioStream, RealtimeVideoStream, RealtimeDataStream } from "./device.types";
10
+ import { TelemetryResult } from "../model/TelemetryResult";
11
+ import { IEventQuery } from "../model/IEventQuery";
12
+ import { IEvent } from "../model/IEvent";
13
+ export declare abstract class BaseDevice extends EventEmitter implements IRealtimeSubscriber, ICustomDataChannelCreator {
14
+ rtcClient: RtcClient | undefined;
15
+ remoteDevicePeerId: string | null;
16
+ protected realtimeListeners: RealtimeListener[];
17
+ protected connectionMonitorInterval: ReturnType<typeof setInterval> | undefined;
18
+ abstract getConfiguration(): Promise<ConfigurationDocument>;
19
+ abstract startRealtimeConnection(sessionType?: number): Promise<void>;
20
+ abstract getRemotePeer(): Promise<IRtcPeer>;
21
+ abstract getTelemetry(streamNameOrStreamNames: string | string[], start: Date, end: Date, tags?: {
22
+ [key in string]: string[];
23
+ }, limit?: number, offset?: number, latestOnly?: boolean): Promise<TelemetryResult[]>;
24
+ abstract queryEvents(query: IEventQuery): Promise<IEvent[]>;
25
+ protected handleMessage: (peerId: string, message: any) => void;
26
+ protected stopConnectionMonitoring(): void;
27
+ protected assertNotCancelled(cancelled: boolean): void;
28
+ getRealtimeStatus(): "disconnected" | "connecting" | "connected";
29
+ getRealtimePingInfo(): IPingInfo | undefined;
30
+ getRealtimePing(): number | undefined;
31
+ addRealtimeListener(listener: RealtimeListener): void;
32
+ removeRealtimeListener(listener: RealtimeListener): void;
33
+ getRealtimeManipulators(): Promise<Manipulator[]>;
34
+ getRealtimeVideoStreams(): Promise<RealtimeVideoStream[]>;
35
+ createCustomRequestDataChannel(channelName: string, timeout?: number): TextRequestDataChannel;
36
+ createCustomBinaryRequestDataChannel(channelName: string, timeout?: number): BinaryRequestDataChannel;
37
+ startListeningToRealtimeVideo(stream: RealtimeVideoStream): Promise<void>;
38
+ stopListeningToRealtimeVideo(stream: RealtimeVideoStream): Promise<void>;
39
+ startListeningToRealtimeDataStream(stream: RealtimeDataStream): Promise<void>;
40
+ stopListeningToRealtimeDataStream(stream: RealtimeDataStream): Promise<void>;
41
+ enableRealtimeTelemetryPriorityIngestion(streamName: string): Promise<void>;
42
+ disableRealtimeTelemetryPriorityIngestion(streamName: string): Promise<void>;
43
+ changeStreamAudioType(streamName: string, newFormat: "wav" | "opus"): Promise<void>;
44
+ createCustomDataChannel(channelName: string, rtcConfig?: RTCDataChannelInit): Promise<DataChannel>;
45
+ sendRealtimeMessage(message: IRtcStreamMessage, config?: IRtcSendConfiguration): Promise<void>;
46
+ getRealtimeAudioStreams(): Promise<RealtimeAudioStream[]>;
47
+ }
@@ -0,0 +1,88 @@
1
+ import { IRtcPeer } from "@formant/realtime-sdk";
2
+ import { createDevice } from "../api/createDevice";
3
+ import { disableDevice } from "../api/disableDevice";
4
+ import { getDevicesData } from "../api/getDevicesData";
5
+ import { patchDevice } from "../api/patchDevice";
6
+ import { queryDevicesData } from "../api/queryDevicesData";
7
+ import { CaptureStream } from "../CaptureStream";
8
+ import { AggregateLevel } from "../model/AggregateLevel";
9
+ import { EventType } from "../model/EventType";
10
+ import { IEvent } from "../model/IEvent";
11
+ import { IEventQuery } from "../model/IEventQuery";
12
+ import { IInterventionResponse } from "../model/IInterventionResponse";
13
+ import { IInterventionTypeMap } from "../model/IInterventionTypeMap";
14
+ import { InterventionType } from "../model/InterventionType";
15
+ import { IShare } from "../model/IShare";
16
+ import { ITags } from "../model/ITags";
17
+ import { SessionType } from "../model/SessionType";
18
+ import { TelemetryResult } from "../model/TelemetryResult";
19
+ import { BaseDevice } from "./BaseDevice";
20
+ import { ConfigurationDocument, ICommandTemplate, IStartRealtimeConnectionOptions, TelemetryStream } from "./device.types";
21
+ export declare class Device extends BaseDevice {
22
+ id: string;
23
+ name: string;
24
+ private organizationId;
25
+ tags?: ITags | undefined;
26
+ constructor(id: string, name: string, organizationId: string, tags?: ITags | undefined);
27
+ static createDevice: typeof createDevice;
28
+ static patchDevice: typeof patchDevice;
29
+ static getDevicesData: typeof getDevicesData;
30
+ static queryDevicesData: typeof queryDevicesData;
31
+ static disableDevice: typeof disableDevice;
32
+ getLatestTelemetry(): Promise<any>;
33
+ /**
34
+ * Asynchronously retrieves the configuration document for a device.
35
+ *
36
+ * @param {boolean} getDesiredConfigurationVersion - Whether to retrieve the desired configuration version
37
+ * @returns {Promise<ConfigurationDocument>} A promise that resolves to the configuration document
38
+ * @throws {Error} Throws an error if the device has no configuration or has never been turned on
39
+ */
40
+ getConfiguration(getDesiredConfigurationVersion?: boolean): Promise<ConfigurationDocument>;
41
+ /**
42
+ * Asynchronously retrieves the device's agent version string
43
+ *
44
+ * @returns {Promise<string | undefined | null>} A promise that resolves to the agent version
45
+ * @throws {Error} Throws an error if the device info cannot be fetched
46
+ */
47
+ getAgentVersion(): Promise<string | undefined | null>;
48
+ getFileUrl(fileId: string): Promise<string[]>;
49
+ /**
50
+ * Starts a real-time connection with the remote device using WebRTC.
51
+ * @param {number} [options] - Optional session type to be used for the connection.
52
+ * @throws `Error` If the connection could not be established or if a connection already exists.
53
+ * @returns {void}
54
+ */
55
+ startRealtimeConnection(options?: SessionType | IStartRealtimeConnectionOptions): Promise<void>;
56
+ private getRemoteDevicePeerId;
57
+ private initConnectionMonitoring;
58
+ getRemotePeer(): Promise<IRtcPeer>;
59
+ stopRealtimeConnection(): Promise<void>;
60
+ isInRealtimeSession(): Promise<boolean>;
61
+ getAvailableCommands(includeDisabled?: boolean): Promise<ICommandTemplate[]>;
62
+ sendCommand(name: string, data?: string, time?: Date, metadata?: {}, id?: string): Promise<Response>;
63
+ getCommand(id: string): Promise<Response>;
64
+ createCaptureStream(streamName: string): Promise<CaptureStream>;
65
+ getTelemetry(streamNameOrStreamNames: string | string[], start: Date, end: Date, tags?: {
66
+ [key in string]: string[];
67
+ }, limit?: number, offset?: number, latestOnly?: boolean): Promise<TelemetryResult[]>;
68
+ queryEvents(query: IEventQuery): Promise<IEvent[]>;
69
+ getTelemetryStreams(): Promise<TelemetryStream[]>;
70
+ createInterventionRequest<T extends InterventionType>(message: string, interventionType: InterventionType, interventionRequest: IInterventionTypeMap[T]["request"], tags?: {
71
+ [key in string]: string[];
72
+ }): Promise<(id: string) => IInterventionTypeMap[T]["response"]>;
73
+ addInterventionResponse<T extends InterventionType>(interventionId: string, interventionType: InterventionType, data: IInterventionTypeMap[T]["response"]): Promise<IInterventionResponse>;
74
+ getAnnotationCount(query: IEventQuery, tagKey: string): Promise<{
75
+ [key: string]: number;
76
+ }>;
77
+ getAnnotationCountByIntervals(query: IEventQuery, tagKey: string, aggregate: AggregateLevel): Promise<{
78
+ date: string;
79
+ annotations: {
80
+ [key: string]: number;
81
+ };
82
+ }[]>;
83
+ eventsCounter(eventTypes: EventType[], timeFrame: AggregateLevel, range: number, time: number, query?: IEventQuery): Promise<{
84
+ date: string;
85
+ events: IEvent[];
86
+ }[]>;
87
+ createShareLink(share: IShare, view: string): Promise<string | null>;
88
+ }
@@ -0,0 +1,4 @@
1
+ import { DataChannel } from "../DataChannel";
2
+ export interface ICustomDataChannelCreator {
3
+ createCustomDataChannel(channelName: string, rtcConfig?: RTCDataChannelInit): Promise<DataChannel>;
4
+ }
@@ -0,0 +1,7 @@
1
+ import { RealtimeDataStream, RealtimeListener } from "./device.types";
2
+ export interface IRealtimeSubscriber {
3
+ addRealtimeListener(listener: RealtimeListener): void;
4
+ removeRealtimeListener(listener: RealtimeListener): void;
5
+ startListeningToRealtimeDataStream(stream: RealtimeDataStream): void;
6
+ stopListeningToRealtimeDataStream(stream: RealtimeDataStream): void;
7
+ }
@@ -0,0 +1,29 @@
1
+ export interface IView {
2
+ id: string;
3
+ tags: {
4
+ [key: string]: string;
5
+ };
6
+ organizationId: string;
7
+ name: string;
8
+ description?: string | null;
9
+ url?: string | null;
10
+ showOnSingleDevice?: boolean;
11
+ showOnMultiDevice?: boolean;
12
+ showOnTeleop?: boolean;
13
+ showOnAnalytics?: boolean;
14
+ showTimeline?: boolean;
15
+ localModeEnabled?: boolean;
16
+ filter: IFilter | null;
17
+ deviceFilter: IFilter | null;
18
+ groupFilter: IFilter | null;
19
+ layoutType?: string | null;
20
+ index: number;
21
+ }
22
+ export interface IFilter {
23
+ deviceIds?: string[];
24
+ names?: string[];
25
+ types?: any[];
26
+ tags?: any;
27
+ notTags?: any;
28
+ notNames?: string[];
29
+ }
@@ -0,0 +1,35 @@
1
+ import { IRtcPeer } from "@formant/realtime-sdk";
2
+ import { IStreamCurrentValue } from "../model/IStreamCurrentValue";
3
+ import { ConfigurationDocument } from "./device.types";
4
+ import { BaseDevice } from "./BaseDevice";
5
+ import { TelemetryResult } from "../model/TelemetryResult";
6
+ import { IEventQuery } from "../model/IEventQuery";
7
+ import { IEvent } from "../model/IEvent";
8
+ import { IView } from "./IView";
9
+ export declare class PeerDevice extends BaseDevice {
10
+ peerUrl: string;
11
+ id: string;
12
+ private telemetryStreamActive;
13
+ private streamTelemetry;
14
+ constructor(peerUrl: string);
15
+ getLatestTelemetry(): Promise<IStreamCurrentValue[]>;
16
+ getTelemetry(streamNameOrStreamNames: string | string[], start: Date, end: Date, tags?: {
17
+ [key in string]: string[];
18
+ }, limit?: number, offset?: number, latestOnly?: boolean): Promise<TelemetryResult[]>;
19
+ queryEvents(query: IEventQuery): Promise<IEvent[]>;
20
+ private checkKeysAndThrow;
21
+ private getPointPayload;
22
+ private subscribeToTelemetry;
23
+ private handleXHRError;
24
+ getDeviceId(): Promise<string>;
25
+ getConfiguration(): Promise<ConfigurationDocument>;
26
+ getViews(): Promise<IView[]>;
27
+ startRealtimeConnection(sessionType?: number): Promise<void>;
28
+ private initConnectionMonitoring;
29
+ getRemotePeer(): Promise<IRtcPeer>;
30
+ stopRealtimeConnection(): Promise<void>;
31
+ getCommandMetadata(): Promise<{
32
+ commands: any[];
33
+ }>;
34
+ sendCommand(name: string, data?: string, time?: Date, metadata?: {}): Promise<Response>;
35
+ }
@@ -0,0 +1,115 @@
1
+ import { IRtcStreamPayload, RtcStreamType } from "@formant/realtime-sdk";
2
+ import { IDictionary } from "../model/IDictionary";
3
+ import { IFilter } from "../model/IFilter";
4
+ import { IScopeFilter } from "../model/IScopeFilter";
5
+ import { ITaggedEntity } from "../model/ITaggedEntity";
6
+ import { ITags } from "../model/ITags";
7
+ import { SessionType } from "../model/SessionType";
8
+ import { Uuid } from "../model/Uuid";
9
+ export interface ConfigurationDocument {
10
+ tags: ITags;
11
+ urdfFiles: string[];
12
+ telemetry?: {
13
+ streams?: {
14
+ name: string;
15
+ disabled?: boolean;
16
+ onDemand?: boolean;
17
+ }[];
18
+ };
19
+ teleop?: {
20
+ customStreams?: {
21
+ name: string;
22
+ rtcStreamType: RtcStreamType;
23
+ }[];
24
+ hardwareStreams?: {
25
+ name: string;
26
+ rtcStreamType: RtcStreamType;
27
+ }[];
28
+ rosStreams?: {
29
+ rtcStreamType: RtcStreamType;
30
+ topicName: string;
31
+ topicType: string;
32
+ }[];
33
+ };
34
+ adapters?: IAdapterConfiguration[];
35
+ application?: {
36
+ configurationMap: {
37
+ [key: string]: string;
38
+ };
39
+ };
40
+ }
41
+ export interface ICommandDeliverySettings {
42
+ ttlMs?: number;
43
+ retryable?: boolean;
44
+ }
45
+ export interface ICommandTemplate extends ITaggedEntity {
46
+ organizationId?: Uuid;
47
+ name: string;
48
+ command: string;
49
+ description?: string;
50
+ parameterEnabled: boolean;
51
+ allowParameterOverride?: boolean;
52
+ parameterValue?: string | null;
53
+ parameterMeta?: IDictionary;
54
+ deviceScope?: IScopeFilter;
55
+ enabled?: boolean;
56
+ deviceFilter: IFilter | null;
57
+ lambdaUri?: string | null;
58
+ deliverySettings?: ICommandDeliverySettings;
59
+ schema?: string | null;
60
+ }
61
+ export interface Command {
62
+ id: string;
63
+ name: string;
64
+ command: string;
65
+ description: string;
66
+ parameterEnabled: true;
67
+ parameterValue: string | null;
68
+ tags: ITags;
69
+ parameterMeta?: {
70
+ topic?: string;
71
+ };
72
+ }
73
+ export interface IJointState {
74
+ name: string[];
75
+ position: number[];
76
+ velocity?: number[];
77
+ effort?: number[];
78
+ }
79
+ export interface TelemetryStream {
80
+ name: string;
81
+ onDemand: boolean;
82
+ }
83
+ export interface IAdapterConfiguration {
84
+ id: Uuid;
85
+ name: string;
86
+ fileId: Uuid;
87
+ execCommand: string;
88
+ configuration?: string;
89
+ }
90
+ export type RealtimeMessage = {
91
+ header: {
92
+ created: number;
93
+ stream: {
94
+ entityId: string;
95
+ streamName: string;
96
+ streamType: RtcStreamType;
97
+ };
98
+ };
99
+ payload: IRtcStreamPayload;
100
+ };
101
+ export type RealtimeListener = (peerId: string, message: RealtimeMessage) => void;
102
+ export type RealtimeAudioStream = {
103
+ name: string;
104
+ };
105
+ export type RealtimeVideoStream = {
106
+ name: string;
107
+ };
108
+ export type RealtimeDataStream = {
109
+ name: string;
110
+ };
111
+ export interface IStartRealtimeConnectionOptions {
112
+ sessionType?: SessionType;
113
+ deadlineMs?: number;
114
+ maxConnectRetries?: number;
115
+ }
@@ -0,0 +1 @@
1
+ export {};