@formant/realtime-sdk 1.3.0 → 1.3.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 (217) hide show
  1. package/dist/client/AuthClient.d.ts +42 -0
  2. package/dist/client/Credentials.d.ts +10 -0
  3. package/dist/client/LanAgentClient.d.ts +7 -0
  4. package/dist/client/RtcSignalingClient.d.ts +20 -0
  5. package/dist/common/BaseClient.d.ts +43 -0
  6. package/dist/common/ConnectionError.d.ts +6 -0
  7. package/dist/common/FormantBaseClient.d.ts +13 -0
  8. package/dist/common/LogApiTransport.d.ts +11 -0
  9. package/dist/common/LogClient.d.ts +6 -0
  10. package/dist/common/LogReporter.d.ts +6 -0
  11. package/dist/common/LruCache.d.ts +20 -0
  12. package/dist/common/PromiseLruCache.d.ts +11 -0
  13. package/dist/common/ResponseError.d.ts +11 -0
  14. package/dist/common/ResponseHeadersError.d.ts +7 -0
  15. package/dist/common/StatsManager.d.ts +39 -0
  16. package/dist/common/StatsReporter.d.ts +17 -0
  17. package/dist/common/assertUnreachable.d.ts +1 -0
  18. package/dist/common/browser.d.ts +2 -0
  19. package/dist/common/collectErrors.d.ts +1 -0
  20. package/dist/common/config/index.d.ts +23 -0
  21. package/dist/common/defined.d.ts +6 -0
  22. package/dist/common/delay.d.ts +1 -0
  23. package/dist/common/errorToObject.d.ts +16 -0
  24. package/dist/common/errorToString.d.ts +6 -0
  25. package/dist/common/filterIceServers.d.ts +8 -0
  26. package/dist/common/instanceId.d.ts +1 -0
  27. package/dist/common/isErrorType.d.ts +1 -0
  28. package/dist/common/isObject.d.ts +1 -0
  29. package/dist/common/isValidTagString.d.ts +1 -0
  30. package/dist/common/logger.d.ts +4 -0
  31. package/dist/common/narrowError.d.ts +1 -0
  32. package/dist/common/objectMapValues.d.ts +9 -0
  33. package/dist/common/redact.d.ts +5 -0
  34. package/dist/common/setPromiseInterval.d.ts +16 -0
  35. package/dist/common/stats.d.ts +2 -0
  36. package/dist/common/toStringSafe.d.ts +8 -0
  37. package/dist/date-fns/parseIsoDate.d.ts +1 -0
  38. package/dist/index.js +2 -0
  39. package/dist/index.js.LICENSE.txt +19 -0
  40. package/dist/model/AnnotationAreaType.d.ts +2 -0
  41. package/dist/model/AuditLogActionType.d.ts +5 -0
  42. package/dist/model/CognitoRegion.d.ts +2 -0
  43. package/dist/model/Feature.d.ts +3 -0
  44. package/dist/model/HealthStatus.d.ts +2 -0
  45. package/dist/model/HexRgbColor.d.ts +1 -0
  46. package/dist/model/IAdminSignupRequest.d.ts +14 -0
  47. package/dist/model/IAnnotationAreaTypeMap.d.ts +4 -0
  48. package/dist/model/IAudioChunk.d.ts +5 -0
  49. package/dist/model/IAuditLog.d.ts +14 -0
  50. package/dist/model/IAuthentication.d.ts +8 -0
  51. package/dist/model/IBaseEntity.d.ts +7 -0
  52. package/dist/model/IBattery.d.ts +6 -0
  53. package/dist/model/IBitset.d.ts +4 -0
  54. package/dist/model/IBoundingBox.d.ts +6 -0
  55. package/dist/model/IChallenge.d.ts +7 -0
  56. package/dist/model/ICheckSsoResult.d.ts +5 -0
  57. package/dist/model/IColorRGBA.d.ts +6 -0
  58. package/dist/model/ICompressedImage.d.ts +3 -0
  59. package/dist/model/ICreateServiceAccountResponse.d.ts +5 -0
  60. package/dist/model/IDeviceCredentials.d.ts +9 -0
  61. package/dist/model/IDictionary.d.ts +3 -0
  62. package/dist/model/IFile.d.ts +6 -0
  63. package/dist/model/IFilter.d.ts +11 -0
  64. package/dist/model/IGetFeaturesResponse.d.ts +4 -0
  65. package/dist/model/IGoal.d.ts +5 -0
  66. package/dist/model/IGoalID.d.ts +3 -0
  67. package/dist/model/IGoogleLoginRequest.d.ts +4 -0
  68. package/dist/model/IH264VideoFrame.d.ts +5 -0
  69. package/dist/model/IHealth.d.ts +5 -0
  70. package/dist/model/IImage.d.ts +6 -0
  71. package/dist/model/IImageAnnotation.d.ts +9 -0
  72. package/dist/model/IJointState.d.ts +8 -0
  73. package/dist/model/IJoy.d.ts +4 -0
  74. package/dist/model/IJsonString.d.ts +3 -0
  75. package/dist/model/IListResponse.d.ts +3 -0
  76. package/dist/model/ILocalization.d.ts +14 -0
  77. package/dist/model/ILocation.d.ts +6 -0
  78. package/dist/model/ILogLine.d.ts +9 -0
  79. package/dist/model/ILoginRequest.d.ts +7 -0
  80. package/dist/model/ILoginResult.d.ts +7 -0
  81. package/dist/model/IMap.d.ts +10 -0
  82. package/dist/model/IMarker3D.d.ts +23 -0
  83. package/dist/model/IMarker3DArray.d.ts +4 -0
  84. package/dist/model/IMetric.d.ts +7 -0
  85. package/dist/model/INumericSetEntry.d.ts +5 -0
  86. package/dist/model/IOdometry.d.ts +7 -0
  87. package/dist/model/IPath.d.ts +5 -0
  88. package/dist/model/IPoint.d.ts +2 -0
  89. package/dist/model/IPointCloud.d.ts +6 -0
  90. package/dist/model/IPoseWithCovariance.d.ts +5 -0
  91. package/dist/model/IPostLanRtcOfferRequest.d.ts +3 -0
  92. package/dist/model/IPostLanRtcOfferResponse.d.ts +3 -0
  93. package/dist/model/IQuaternion.d.ts +6 -0
  94. package/dist/model/IRtcAddSignalsRequest.d.ts +4 -0
  95. package/dist/model/IRtcCapabilitySet.d.ts +6 -0
  96. package/dist/model/IRtcCreatePeerRequest.d.ts +6 -0
  97. package/dist/model/IRtcCreateSessionRequest.d.ts +5 -0
  98. package/dist/model/IRtcIceServer.d.ts +5 -0
  99. package/dist/model/IRtcInfo.d.ts +7 -0
  100. package/dist/model/IRtcPeer.d.ts +11 -0
  101. package/dist/model/IRtcPeerDescription.d.ts +6 -0
  102. package/dist/model/IRtcPortForwardingConfiguration.d.ts +3 -0
  103. package/dist/model/IRtcSession.d.ts +12 -0
  104. package/dist/model/IRtcSignal.d.ts +3 -0
  105. package/dist/model/IRtcStream.d.ts +9 -0
  106. package/dist/model/IRtcStreamCapability.d.ts +6 -0
  107. package/dist/model/IRtcStreamingConfiguration.d.ts +4 -0
  108. package/dist/model/IScopeFilter.d.ts +6 -0
  109. package/dist/model/IStat.d.ts +21 -0
  110. package/dist/model/IStreamTypeMap.d.ts +27 -0
  111. package/dist/model/ITagFilter.d.ts +4 -0
  112. package/dist/model/ITagSets.d.ts +3 -0
  113. package/dist/model/ITaggedEntity.d.ts +5 -0
  114. package/dist/model/ITags.d.ts +2 -0
  115. package/dist/model/ITransform.d.ts +6 -0
  116. package/dist/model/ITransformNode.d.ts +8 -0
  117. package/dist/model/ITwist.d.ts +5 -0
  118. package/dist/model/IUser.d.ts +36 -0
  119. package/dist/model/IUserScope.d.ts +16 -0
  120. package/dist/model/IValidation.d.ts +3 -0
  121. package/dist/model/IVector3.d.ts +5 -0
  122. package/dist/model/IVideo.d.ts +7 -0
  123. package/dist/model/IsoDate.d.ts +1 -0
  124. package/dist/model/LanguageType.d.ts +2 -0
  125. package/dist/model/LogLevel.d.ts +2 -0
  126. package/dist/model/Marker3DAction.d.ts +2 -0
  127. package/dist/model/Marker3DType.d.ts +2 -0
  128. package/dist/model/OrganizationPlan.d.ts +2 -0
  129. package/dist/model/RequireKeys.d.ts +3 -0
  130. package/dist/model/RtcConnectionStatus.d.ts +2 -0
  131. package/dist/model/RtcIceServerProtocol.d.ts +2 -0
  132. package/dist/model/RtcIceTransportPolicy.d.ts +2 -0
  133. package/dist/model/RtcSessionType.d.ts +2 -0
  134. package/dist/model/RtcStreamType.d.ts +3 -0
  135. package/dist/model/SmsOptInStatus.d.ts +2 -0
  136. package/dist/model/StreamType.d.ts +2 -0
  137. package/dist/model/Timeout.d.ts +1 -0
  138. package/dist/model/Timestamp.d.ts +1 -0
  139. package/dist/model/Uuid.d.ts +1 -0
  140. package/dist/model/VideoMimeType.d.ts +2 -0
  141. package/dist/model/auditLogActionTypes.d.ts +1 -0
  142. package/dist/model/bytes.d.ts +9 -0
  143. package/dist/model/cognitoRegions.d.ts +1 -0
  144. package/dist/model/duration.d.ts +10 -0
  145. package/dist/model/features.d.ts +2 -0
  146. package/dist/model/healthStatuses.d.ts +5 -0
  147. package/dist/model/languageTypes.d.ts +1 -0
  148. package/dist/model/logLevels.d.ts +1 -0
  149. package/dist/model/marker3DActions.d.ts +1 -0
  150. package/dist/model/marker3DTypes.d.ts +1 -0
  151. package/dist/model/organizationPlans.d.ts +1 -0
  152. package/dist/model/rtcConnectionStatuses.d.ts +1 -0
  153. package/dist/model/rtcIceServerProtocols.d.ts +1 -0
  154. package/dist/model/rtcIceTransportPolicies.d.ts +1 -0
  155. package/dist/model/rtcSessionTypes.d.ts +1 -0
  156. package/dist/model/rtcStreamTypes.d.ts +28 -0
  157. package/dist/model/smsOptInStatuses.d.ts +1 -0
  158. package/dist/model/videoMimeTypes.d.ts +1 -0
  159. package/dist/protos/api/signaling/v1/signaling.proto +114 -0
  160. package/dist/protos/api/signaling/v1/signaling_grpc_web_pb.d.ts +125 -0
  161. package/dist/protos/api/signaling/v1/signaling_grpc_web_pb.js +626 -0
  162. package/dist/protos/api/signaling/v1/signaling_pb.d.ts +458 -0
  163. package/dist/protos/api/signaling/v1/signaling_pb.js +3854 -0
  164. package/dist/realtime-sdk/src/config/index.d.ts +2 -0
  165. package/dist/realtime-sdk/src/index.d.ts +18 -0
  166. package/dist/rtc-client/DeadlineEnforcer.d.ts +4 -0
  167. package/dist/rtc-client/DeadlineReachedError.d.ts +3 -0
  168. package/dist/rtc-client/IHasPeerConnection.d.ts +3 -0
  169. package/dist/rtc-client/IHasRemoteDeviceId.d.ts +4 -0
  170. package/dist/rtc-client/RtcClient.d.ts +71 -0
  171. package/dist/rtc-client/RtcClientV1.d.ts +52 -0
  172. package/dist/rtc-client/RtcConnection.d.ts +95 -0
  173. package/dist/rtc-client/RtcConnectionV1.d.ts +73 -0
  174. package/dist/rtc-client/RtcSessionMetrics.d.ts +17 -0
  175. package/dist/rtc-client/RtcSessionMetricsV1.d.ts +14 -0
  176. package/dist/rtc-client/config/index.d.ts +11 -0
  177. package/dist/rtc-client/gatherPingMetrics.d.ts +17 -0
  178. package/dist/rtc-client/models/IIceMode.d.ts +1 -0
  179. package/dist/rtc-client/models/IPingInfo.d.ts +10 -0
  180. package/dist/rtc-client/models/IPingPayload.d.ts +6 -0
  181. package/dist/rtc-client/models/IRTCStatsIceCandidate.d.ts +9 -0
  182. package/dist/rtc-client/models/IRTCStatsIceCandidatePair.d.ts +9 -0
  183. package/dist/rtc-client/models/IRTCStatsTransport.d.ts +8 -0
  184. package/dist/rtc-client/models/IRtcAgentInfo.d.ts +3 -0
  185. package/dist/rtc-client/models/IRtcClientConfiguration.d.ts +18 -0
  186. package/dist/rtc-client/models/IRtcConnectionBaseConfiguration.d.ts +16 -0
  187. package/dist/rtc-client/models/IRtcConnectionConfiguration.d.ts +6 -0
  188. package/dist/rtc-client/models/IRtcConnectionRemoteConfiguration.d.ts +6 -0
  189. package/dist/rtc-client/models/IRtcConnectionStatsInfo.d.ts +9 -0
  190. package/dist/rtc-client/models/IRtcPointCloud.d.ts +5 -0
  191. package/dist/rtc-client/models/IRtcSendConfiguration.d.ts +4 -0
  192. package/dist/rtc-client/models/IRtcSessionMetricsMessageCounts.d.ts +6 -0
  193. package/dist/rtc-client/models/IRtcStreamCommunication.d.ts +4 -0
  194. package/dist/rtc-client/models/IRtcStreamMessage.d.ts +7 -0
  195. package/dist/rtc-client/models/IRtcStreamMessageChunk.d.ts +7 -0
  196. package/dist/rtc-client/models/IRtcStreamMessageHeader.d.ts +7 -0
  197. package/dist/rtc-client/models/IRtcStreamPayload.d.ts +55 -0
  198. package/dist/rtc-client/models/IRtcStreamsInfo.d.ts +9 -0
  199. package/dist/rtc-client/models/IStreamControl.d.ts +23 -0
  200. package/dist/rtc-client/models/RtcChannelLabel.d.ts +2 -0
  201. package/dist/rtc-client/models/RtcCommunicationType.d.ts +1 -0
  202. package/dist/rtc-client/models/rtcChannelLabels.d.ts +1 -0
  203. package/dist/rtc-client/models-v1/IRtcClientConfigurationV1.d.ts +11 -0
  204. package/dist/rtc-client/models-v1/IRtcConnectionConfigurationV1.d.ts +12 -0
  205. package/dist/rtc-client/utils/assertHasPeerConnection.d.ts +1 -0
  206. package/dist/rtc-client/utils/createRtcStreamMessage.d.ts +4 -0
  207. package/dist/rtc-client/utils/encodeStreamId.d.ts +3 -0
  208. package/dist/rtc-client/utils/garbageCollect.d.ts +1 -0
  209. package/dist/rtc-client/utils/getErrorMessage.d.ts +1 -0
  210. package/dist/rtc-client/utils/iceModeFromRtcConnectionInfo.d.ts +3 -0
  211. package/dist/rtc-client/utils/isInactive.d.ts +1 -0
  212. package/dist/rtc-client/utils/partition.d.ts +1 -0
  213. package/dist/rtc-client/utils/peerToRtcPeer.d.ts +3 -0
  214. package/dist/rtc-client/utils/reassembleMessageChunks.d.ts +3 -0
  215. package/dist/rtc-client/utils/reifyZeroValues.d.ts +2 -0
  216. package/dist/rtc-client/utils/streamIsEqual.d.ts +2 -0
  217. package/package.json +1 -1
@@ -0,0 +1,19 @@
1
+ /*!
2
+ * The buffer module from node.js, for the browser.
3
+ *
4
+ * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
5
+ * @license MIT
6
+ */
7
+
8
+ /*!
9
+ * The buffer module from node.js, for the browser.
10
+ *
11
+ * @author Feross Aboukhadijeh <https://feross.org>
12
+ * @license MIT
13
+ */
14
+
15
+ /*! https://mths.be/punycode v1.4.1 by @mathias */
16
+
17
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
18
+
19
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
@@ -0,0 +1,2 @@
1
+ import { IAnnotationAreaTypeMap } from "./IAnnotationAreaTypeMap";
2
+ export type AnnotationAreaType = keyof IAnnotationAreaTypeMap;
@@ -0,0 +1,5 @@
1
+ import { auditLogActionTypes } from "./auditLogActionTypes";
2
+ export type AuditLogActionType = (typeof auditLogActionTypes)[number];
3
+ export declare const httpMethodToAuditLogTypeMap: {
4
+ [httpMethod: string]: AuditLogActionType;
5
+ };
@@ -0,0 +1,2 @@
1
+ import { cognitoRegions } from "./cognitoRegions";
2
+ export type CognitoRegion = (typeof cognitoRegions)[number];
@@ -0,0 +1,3 @@
1
+ import { agentFeatures, features } from "./features";
2
+ export type Feature = (typeof features)[number];
3
+ export type AgentFeature = (typeof agentFeatures)[number];
@@ -0,0 +1,2 @@
1
+ import { healthStatuses } from "./healthStatuses";
2
+ export type HealthStatus = (typeof healthStatuses)[number];
@@ -0,0 +1 @@
1
+ export type HexRgbColor = string;
@@ -0,0 +1,14 @@
1
+ import { IsoDate } from "./IsoDate";
2
+ import { OrganizationPlan } from "./OrganizationPlan";
3
+ export interface IAdminSignupRequest {
4
+ email: string;
5
+ password?: string;
6
+ firstName: string;
7
+ lastName: string;
8
+ organizationName?: string;
9
+ organizationPlan?: OrganizationPlan;
10
+ stripeBillingEnabled?: boolean;
11
+ stripeSubscriptionEnabled?: boolean;
12
+ isSingleSignOn?: boolean;
13
+ trialPeriodEnd?: IsoDate | null;
14
+ }
@@ -0,0 +1,4 @@
1
+ import { IBoundingBox } from "./IBoundingBox";
2
+ export interface IAnnotationAreaTypeMap {
3
+ "bounding box": IBoundingBox;
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface IAudioChunk {
2
+ index: number;
3
+ format: string;
4
+ chunk_data: string;
5
+ }
@@ -0,0 +1,14 @@
1
+ import { AuditLogActionType } from "./AuditLogActionType";
2
+ import { Uuid } from "./Uuid";
3
+ export interface IAuditLog {
4
+ organizationId: Uuid;
5
+ userId?: Uuid;
6
+ deviceId?: Uuid;
7
+ impersonatorUserId?: Uuid;
8
+ action: AuditLogActionType;
9
+ statusOk: boolean;
10
+ entityName: string;
11
+ entityId: Uuid;
12
+ entity?: any;
13
+ lastFiveDigitsPhoneNumber?: string;
14
+ }
@@ -0,0 +1,8 @@
1
+ import { Uuid } from "./Uuid";
2
+ export interface IAuthentication {
3
+ accessToken: string;
4
+ refreshToken?: string;
5
+ organizationId: Uuid;
6
+ userId: Uuid;
7
+ isSuperuser?: boolean;
8
+ }
@@ -0,0 +1,7 @@
1
+ import { IsoDate } from "./IsoDate";
2
+ import { Uuid } from "./Uuid";
3
+ export interface IBaseEntity {
4
+ id?: Uuid;
5
+ createdAt?: IsoDate;
6
+ updatedAt?: IsoDate;
7
+ }
@@ -0,0 +1,6 @@
1
+ export interface IBattery {
2
+ percentage: number;
3
+ voltage?: number;
4
+ current?: number;
5
+ charge?: number;
6
+ }
@@ -0,0 +1,4 @@
1
+ export interface IBitset {
2
+ keys: string[];
3
+ values: boolean[];
4
+ }
@@ -0,0 +1,6 @@
1
+ export interface IBoundingBox {
2
+ x: number;
3
+ y: number;
4
+ width: number;
5
+ height: number;
6
+ }
@@ -0,0 +1,7 @@
1
+ import { Uuid } from "./Uuid";
2
+ export interface IChallenge {
3
+ type: "new-password-required";
4
+ userId: Uuid;
5
+ email: string;
6
+ session: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ export interface ICheckSsoResult {
2
+ issuer: string;
3
+ clientId: string;
4
+ isSso?: boolean;
5
+ }
@@ -0,0 +1,6 @@
1
+ export interface IColorRGBA {
2
+ r: number;
3
+ g: number;
4
+ b: number;
5
+ a: number;
6
+ }
@@ -0,0 +1,3 @@
1
+ export interface ICompressedImage {
2
+ data: string;
3
+ }
@@ -0,0 +1,5 @@
1
+ import { IUser } from "./IUser";
2
+ export interface ICreateServiceAccountResponse {
3
+ user: IUser;
4
+ password: string;
5
+ }
@@ -0,0 +1,9 @@
1
+ import { IsoDate } from "./IsoDate";
2
+ export interface IDeviceCredentials {
3
+ accessKeyId: string;
4
+ secretAccessKey: string;
5
+ sessionToken: string;
6
+ expiration: IsoDate;
7
+ s3Region: string;
8
+ s3UploadBucket: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ export interface IDictionary<T = string> {
2
+ [key: string]: T;
3
+ }
@@ -0,0 +1,6 @@
1
+ export interface IFile {
2
+ url: string;
3
+ filename: string;
4
+ size: number;
5
+ previewUrl?: string;
6
+ }
@@ -0,0 +1,11 @@
1
+ import { ITagFilter } from "./ITagFilter";
2
+ import { ITagSets } from "./ITagSets";
3
+ import { StreamType } from "./StreamType";
4
+ import { Uuid } from "./Uuid";
5
+ export interface IFilter extends ITagFilter {
6
+ deviceIds?: Uuid[];
7
+ names?: string[];
8
+ types?: StreamType[];
9
+ notTags?: ITagSets | ITagSets[];
10
+ notNames?: string[];
11
+ }
@@ -0,0 +1,4 @@
1
+ import { Feature } from "./Feature";
2
+ export interface IGetFeaturesResponse {
3
+ features: Feature[];
4
+ }
@@ -0,0 +1,5 @@
1
+ import { ITransform } from "./ITransform";
2
+ export interface IGoal {
3
+ worldToLocal: ITransform;
4
+ pose: ITransform;
5
+ }
@@ -0,0 +1,3 @@
1
+ export interface IGoalID {
2
+ id?: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ export interface IGoogleLoginRequest {
2
+ token: string;
3
+ autoCreateOrg?: boolean;
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface IH264VideoFrame {
2
+ index: number;
3
+ flags: number;
4
+ frame_data: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { HealthStatus } from "./HealthStatus";
2
+ export interface IHealth {
3
+ status: HealthStatus;
4
+ clockSkewMs?: number;
5
+ }
@@ -0,0 +1,6 @@
1
+ import { IImageAnnotation } from "./IImageAnnotation";
2
+ export interface IImage {
3
+ url: string;
4
+ size?: number;
5
+ annotations?: IImageAnnotation[];
6
+ }
@@ -0,0 +1,9 @@
1
+ import { AnnotationAreaType } from "./AnnotationAreaType";
2
+ import { HexRgbColor } from "./HexRgbColor";
3
+ import { IAnnotationAreaTypeMap } from "./IAnnotationAreaTypeMap";
4
+ export interface IImageAnnotation<T extends AnnotationAreaType = AnnotationAreaType> {
5
+ label: string;
6
+ type: AnnotationAreaType;
7
+ area: IAnnotationAreaTypeMap[T];
8
+ color: HexRgbColor;
9
+ }
@@ -0,0 +1,8 @@
1
+ import { ITransform } from "./ITransform";
2
+ export interface IJointState {
3
+ world_to_local?: ITransform;
4
+ name: string[];
5
+ position: number[];
6
+ velocity?: number[];
7
+ effort?: number[];
8
+ }
@@ -0,0 +1,4 @@
1
+ export interface IJoy {
2
+ axes: number[];
3
+ buttons: number[];
4
+ }
@@ -0,0 +1,3 @@
1
+ export interface IJsonString {
2
+ value: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface IListResponse<T> {
2
+ items: T[];
3
+ }
@@ -0,0 +1,14 @@
1
+ import { IGoal } from "./IGoal";
2
+ import { IMap } from "./IMap";
3
+ import { IOdometry } from "./IOdometry";
4
+ import { IPath } from "./IPath";
5
+ import { IPointCloud } from "./IPointCloud";
6
+ export interface ILocalization {
7
+ odometry?: IOdometry;
8
+ map?: IMap;
9
+ pointClouds?: IPointCloud[];
10
+ path?: IPath;
11
+ goal?: IGoal;
12
+ url?: string;
13
+ size?: number;
14
+ }
@@ -0,0 +1,6 @@
1
+ export interface ILocation {
2
+ latitude: number;
3
+ longitude: number;
4
+ altitude?: number;
5
+ orientation?: number;
6
+ }
@@ -0,0 +1,9 @@
1
+ import { IsoDate } from "./IsoDate";
2
+ import { LogLevel } from "./LogLevel";
3
+ export interface ILogLine {
4
+ timestamp: IsoDate;
5
+ level: LogLevel;
6
+ message: string;
7
+ error?: any;
8
+ meta?: any;
9
+ }
@@ -0,0 +1,7 @@
1
+ import { ITagFilter } from "./ITagFilter";
2
+ export interface ILoginRequest {
3
+ email: string;
4
+ password: string;
5
+ tokenExpirationSeconds?: number;
6
+ filter?: ITagFilter;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { IAuthentication } from "./IAuthentication";
2
+ import { IChallenge } from "./IChallenge";
3
+ export interface ILoginResult {
4
+ authentication?: IAuthentication;
5
+ challenge?: IChallenge;
6
+ isExistingUser?: boolean;
7
+ }
@@ -0,0 +1,10 @@
1
+ import { ITransform } from "./ITransform";
2
+ export interface IMap {
3
+ url: string;
4
+ size?: number;
5
+ width: number;
6
+ height: number;
7
+ resolution: number;
8
+ origin: ITransform;
9
+ worldToLocal: ITransform;
10
+ }
@@ -0,0 +1,23 @@
1
+ import { IColorRGBA } from "./IColorRGBA";
2
+ import { ITransform } from "./ITransform";
3
+ import { IVector3 } from "./IVector3";
4
+ import { Marker3DAction } from "./Marker3DAction";
5
+ import { Marker3DType } from "./Marker3DType";
6
+ export interface IMarker3D {
7
+ world_to_local?: ITransform;
8
+ ns: string;
9
+ id: number;
10
+ type: Marker3DType;
11
+ action: Marker3DAction;
12
+ pose: ITransform;
13
+ scale: IVector3;
14
+ color: IColorRGBA;
15
+ lifetime: number;
16
+ frame_id: string;
17
+ frame_locked: boolean;
18
+ points: IVector3[];
19
+ colors: IColorRGBA[];
20
+ text: string;
21
+ mesh_resource: string;
22
+ mesh_use_embedded_materials: boolean;
23
+ }
@@ -0,0 +1,4 @@
1
+ import { IMarker3D } from "./IMarker3D";
2
+ export interface IMarker3DArray {
3
+ markers: IMarker3D[];
4
+ }
@@ -0,0 +1,7 @@
1
+ import { IStat } from "./IStat";
2
+ import { ITags } from "./ITags";
3
+ export interface IMetric {
4
+ name: string;
5
+ tags?: ITags;
6
+ stat: IStat;
7
+ }
@@ -0,0 +1,5 @@
1
+ export interface INumericSetEntry {
2
+ label: string;
3
+ value: number;
4
+ unit?: string;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { ITransform } from "./ITransform";
2
+ import { ITwist } from "./ITwist";
3
+ export interface IOdometry {
4
+ pose: ITransform;
5
+ twist: ITwist;
6
+ worldToLocal: ITransform;
7
+ }
@@ -0,0 +1,5 @@
1
+ import { ITransform } from "./ITransform";
2
+ export interface IPath {
3
+ worldToLocal: ITransform;
4
+ poses: ITransform[];
5
+ }
@@ -0,0 +1,2 @@
1
+ import { IVector3 } from "./IVector3";
2
+ export type IPoint = IVector3;
@@ -0,0 +1,6 @@
1
+ import { ITransform } from "./ITransform";
2
+ export interface IPointCloud {
3
+ url: string;
4
+ size?: number;
5
+ worldToLocal?: ITransform;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { ITransform } from "./ITransform";
2
+ export interface IPoseWithCovariance {
3
+ pose: ITransform;
4
+ covariance: Array<number>;
5
+ }
@@ -0,0 +1,3 @@
1
+ export interface IPostLanRtcOfferRequest {
2
+ offer: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface IPostLanRtcOfferResponse {
2
+ answer: string;
3
+ }
@@ -0,0 +1,6 @@
1
+ export interface IQuaternion {
2
+ x: number;
3
+ y: number;
4
+ z: number;
5
+ w: number;
6
+ }
@@ -0,0 +1,4 @@
1
+ import { IRtcSignal } from "./IRtcSignal";
2
+ export interface IRtcAddSignalsRequest {
3
+ signals: IRtcSignal[];
4
+ }
@@ -0,0 +1,6 @@
1
+ import { IRtcPortForwardingConfiguration } from "./IRtcPortForwardingConfiguration";
2
+ import { IRtcStreamingConfiguration } from "./IRtcStreamingConfiguration";
3
+ export interface IRtcCapabilitySet {
4
+ streaming?: IRtcStreamingConfiguration | null;
5
+ portForwarding?: IRtcPortForwardingConfiguration | null;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { IRtcCapabilitySet } from "./IRtcCapabilitySet";
2
+ import { IRtcStreamCapability } from "./IRtcStreamCapability";
3
+ export interface IRtcCreatePeerRequest {
4
+ capabilitySet?: IRtcCapabilitySet;
5
+ capabilities?: IRtcStreamCapability[];
6
+ }
@@ -0,0 +1,5 @@
1
+ import { Uuid } from "./Uuid";
2
+ export interface IRtcCreateSessionRequest {
3
+ offerPeerId: Uuid;
4
+ answerPeerId: Uuid;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface IRtcIceServer {
2
+ urls: string[];
3
+ username?: string;
4
+ credential?: string;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { RtcIceServerProtocol } from "./RtcIceServerProtocol";
2
+ import { RtcIceTransportPolicy } from "./RtcIceTransportPolicy";
3
+ export interface IRtcInfo {
4
+ rtcIceTransportPolicies?: RtcIceTransportPolicy[];
5
+ rtcIceServerProtocol?: RtcIceServerProtocol;
6
+ useAllServers?: boolean;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { IRtcCapabilitySet } from "./IRtcCapabilitySet";
2
+ import { IRtcStreamCapability } from "./IRtcStreamCapability";
3
+ import { Uuid } from "./Uuid";
4
+ export interface IRtcPeer {
5
+ id: Uuid;
6
+ organizationId: Uuid;
7
+ deviceId?: Uuid;
8
+ userId?: Uuid;
9
+ capabilities: IRtcStreamCapability[];
10
+ capabilitySet: IRtcCapabilitySet;
11
+ }
@@ -0,0 +1,6 @@
1
+ import { IRtcPeer } from "./IRtcPeer";
2
+ import { IRtcSignal } from "./IRtcSignal";
3
+ export interface IRtcPeerDescription {
4
+ peer: IRtcPeer;
5
+ signals: IRtcSignal[];
6
+ }
@@ -0,0 +1,3 @@
1
+ export interface IRtcPortForwardingConfiguration {
2
+ ports?: number[] | null;
3
+ }
@@ -0,0 +1,12 @@
1
+ import { IRtcPeerDescription } from "./IRtcPeerDescription";
2
+ import { IsoDate } from "./IsoDate";
3
+ import { RtcSessionType } from "./RtcSessionType";
4
+ import { Uuid } from "./Uuid";
5
+ export interface IRtcSession {
6
+ id: Uuid;
7
+ organizationId: Uuid;
8
+ offer: IRtcPeerDescription;
9
+ answer: IRtcPeerDescription;
10
+ created: IsoDate;
11
+ sessionType?: RtcSessionType;
12
+ }
@@ -0,0 +1,3 @@
1
+ export interface IRtcSignal {
2
+ payload: string;
3
+ }
@@ -0,0 +1,9 @@
1
+ import { RtcStreamType } from "./RtcStreamType";
2
+ import { Uuid } from "./Uuid";
3
+ export interface IRtcStream {
4
+ entityId: Uuid;
5
+ streamName: string;
6
+ streamType: RtcStreamType;
7
+ label?: string;
8
+ buttonLabel?: string;
9
+ }
@@ -0,0 +1,6 @@
1
+ import { IRtcStream } from "./IRtcStream";
2
+ export interface IRtcStreamCapability {
3
+ stream: IRtcStream;
4
+ send: boolean;
5
+ receive: boolean;
6
+ }
@@ -0,0 +1,4 @@
1
+ import { IRtcStreamCapability } from "./IRtcStreamCapability";
2
+ export interface IRtcStreamingConfiguration {
3
+ streams: IRtcStreamCapability[];
4
+ }
@@ -0,0 +1,6 @@
1
+ import { IFilter } from "./IFilter";
2
+ import { IsoDate } from "./IsoDate";
3
+ export interface IScopeFilter extends IFilter {
4
+ start?: IsoDate;
5
+ end?: IsoDate;
6
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * An aggregation of metric samples collected during a sample period.
3
+ */
4
+ export interface IStat {
5
+ /**
6
+ * The minimum sampled value.
7
+ */
8
+ min: number;
9
+ /**
10
+ * The maximum sampled value.
11
+ */
12
+ max: number;
13
+ /**
14
+ * The sum of sampled values.
15
+ */
16
+ sum: number;
17
+ /**
18
+ * The count of sampled values.
19
+ */
20
+ count: number;
21
+ }
@@ -0,0 +1,27 @@
1
+ import { IBattery } from "./IBattery";
2
+ import { IBitset } from "./IBitset";
3
+ import { IFile } from "./IFile";
4
+ import { IHealth } from "./IHealth";
5
+ import { IImage } from "./IImage";
6
+ import { ILocalization } from "./ILocalization";
7
+ import { ILocation } from "./ILocation";
8
+ import { INumericSetEntry } from "./INumericSetEntry";
9
+ import { IPointCloud } from "./IPointCloud";
10
+ import { ITransformNode } from "./ITransformNode";
11
+ import { IVideo } from "./IVideo";
12
+ export interface IStreamTypeMap {
13
+ bitset: IBitset;
14
+ localization: ILocalization;
15
+ "point cloud": IPointCloud;
16
+ location: ILocation;
17
+ file: IFile;
18
+ health: IHealth;
19
+ "transform tree": ITransformNode;
20
+ battery: IBattery;
21
+ video: IVideo;
22
+ "numeric set": INumericSetEntry[];
23
+ json: string;
24
+ image: IImage;
25
+ numeric: number;
26
+ text: string;
27
+ }
@@ -0,0 +1,4 @@
1
+ import { ITagSets } from "./ITagSets";
2
+ export interface ITagFilter {
3
+ tags?: ITagSets | ITagSets[];
4
+ }
@@ -0,0 +1,3 @@
1
+ export interface ITagSets {
2
+ [key: string]: string[];
3
+ }