@formant/data-sdk 0.0.61 → 0.0.64

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 (83) hide show
  1. package/dist/data-sdk.es.js +45 -13
  2. package/dist/data-sdk.umd.js +6 -6
  3. package/dist/types/data-sdk/src/Device.d.ts +1 -0
  4. package/dist/types/data-sdk/src/Fleet.d.ts +6 -1
  5. package/dist/types/data-sdk/src/model/AggregateLevel.d.ts +1 -0
  6. package/dist/types/data-sdk/src/model/AnnotationAreaType.d.ts +2 -0
  7. package/dist/types/data-sdk/src/model/EventSortableColumn.d.ts +1 -0
  8. package/dist/types/data-sdk/src/model/EventType.d.ts +2 -0
  9. package/dist/types/data-sdk/src/model/HealthStatus.d.ts +2 -0
  10. package/dist/types/data-sdk/src/model/HexRgbColor.d.ts +1 -0
  11. package/dist/types/data-sdk/src/model/IAnnotation.d.ts +13 -0
  12. package/dist/types/data-sdk/src/model/IAnnotationAreaTypeMap.d.ts +4 -0
  13. package/dist/types/data-sdk/src/model/IBaseEntity.d.ts +7 -0
  14. package/dist/types/data-sdk/src/model/IBaseEvent.d.ts +19 -0
  15. package/dist/types/data-sdk/src/model/IBattery.d.ts +6 -0
  16. package/dist/types/data-sdk/src/model/IBitset.d.ts +4 -0
  17. package/dist/types/data-sdk/src/model/IBoundingBox.d.ts +6 -0
  18. package/dist/types/data-sdk/src/model/ICommandDeliveryEvent.d.ts +3 -0
  19. package/dist/types/data-sdk/src/model/ICommandEventBase.d.ts +5 -0
  20. package/dist/types/data-sdk/src/model/ICommandRequestEvent.d.ts +5 -0
  21. package/dist/types/data-sdk/src/model/ICommandResponseEvent.d.ts +3 -0
  22. package/dist/types/data-sdk/src/model/IComment.d.ts +7 -0
  23. package/dist/types/data-sdk/src/model/ICustomEvent.d.ts +5 -0
  24. package/dist/types/data-sdk/src/model/IDataPoint.d.ts +7 -0
  25. package/dist/types/data-sdk/src/model/IEvent.d.ts +12 -0
  26. package/dist/types/data-sdk/src/model/IEventFilter.d.ts +19 -0
  27. package/dist/types/data-sdk/src/model/IEventQuery.d.ts +7 -0
  28. package/dist/types/data-sdk/src/model/IEventSort.d.ts +6 -0
  29. package/dist/types/data-sdk/src/model/IFile.d.ts +6 -0
  30. package/dist/types/data-sdk/src/model/IFilter.d.ts +10 -0
  31. package/dist/types/data-sdk/src/model/IGoal.d.ts +5 -0
  32. package/dist/types/data-sdk/src/model/IHealth.d.ts +4 -0
  33. package/dist/types/data-sdk/src/model/IImage.d.ts +6 -0
  34. package/dist/types/data-sdk/src/model/IImageAnnotation.d.ts +9 -0
  35. package/dist/types/data-sdk/src/model/IInterventionRequest.d.ts +9 -0
  36. package/dist/types/data-sdk/src/model/IInterventionResponse.d.ts +10 -0
  37. package/dist/types/data-sdk/src/model/IInterventionTypeMap.d.ts +20 -0
  38. package/dist/types/data-sdk/src/model/ILabel.d.ts +4 -0
  39. package/dist/types/data-sdk/src/model/ILabeledPolygon.d.ts +4 -0
  40. package/dist/types/data-sdk/src/model/ILabelingRequestData.d.ts +8 -0
  41. package/dist/types/data-sdk/src/model/ILabelingResponseData.d.ts +4 -0
  42. package/dist/types/data-sdk/src/model/ILocalization.d.ts +12 -0
  43. package/dist/types/data-sdk/src/model/ILocation.d.ts +6 -0
  44. package/dist/types/data-sdk/src/model/IMap.d.ts +10 -0
  45. package/dist/types/data-sdk/src/model/INumericSetEntry.d.ts +5 -0
  46. package/dist/types/data-sdk/src/model/IOdometry.d.ts +7 -0
  47. package/dist/types/data-sdk/src/model/IPath.d.ts +5 -0
  48. package/dist/types/data-sdk/src/model/IPointCloud.d.ts +6 -0
  49. package/dist/types/data-sdk/src/model/IPortForwardingSessionRecord.d.ts +3 -0
  50. package/dist/types/data-sdk/src/model/IQuaternion.d.ts +6 -0
  51. package/dist/types/data-sdk/src/model/IQuery.d.ts +8 -0
  52. package/dist/types/data-sdk/src/model/IRtcSessionRecord.d.ts +9 -0
  53. package/dist/types/data-sdk/src/model/ISelectionRequestData.d.ts +6 -0
  54. package/dist/types/data-sdk/src/model/ISelectionResponseData.d.ts +3 -0
  55. package/dist/types/data-sdk/src/model/ISpreadsheetIdRange.d.ts +4 -0
  56. package/dist/types/data-sdk/src/model/IStreamData.d.ts +11 -0
  57. package/dist/types/data-sdk/src/model/IStreamTypeMap.d.ts +27 -0
  58. package/dist/types/data-sdk/src/model/ISystemEvent.d.ts +3 -0
  59. package/dist/types/data-sdk/src/model/ITagSets.d.ts +3 -0
  60. package/dist/types/data-sdk/src/model/ITaggedUsers.d.ts +4 -0
  61. package/dist/types/data-sdk/src/model/ITags.d.ts +3 -0
  62. package/dist/types/data-sdk/src/model/ITeleopRequestData.d.ts +3 -0
  63. package/dist/types/data-sdk/src/model/ITeleopResponseData.d.ts +4 -0
  64. package/dist/types/data-sdk/src/model/ITeleopSessionRecord.d.ts +3 -0
  65. package/dist/types/data-sdk/src/model/ITransform.d.ts +6 -0
  66. package/dist/types/data-sdk/src/model/ITransformNode.d.ts +7 -0
  67. package/dist/types/data-sdk/src/model/ITriggeredEvent.d.ts +10 -0
  68. package/dist/types/data-sdk/src/model/ITwist.d.ts +5 -0
  69. package/dist/types/data-sdk/src/model/IVector3.d.ts +5 -0
  70. package/dist/types/data-sdk/src/model/IVideo.d.ts +7 -0
  71. package/dist/types/data-sdk/src/model/InterventionType.d.ts +2 -0
  72. package/dist/types/data-sdk/src/model/IsoDate.d.ts +1 -0
  73. package/dist/types/data-sdk/src/model/Severity.d.ts +2 -0
  74. package/dist/types/data-sdk/src/model/SortOrder.d.ts +1 -0
  75. package/dist/types/data-sdk/src/model/StreamType.d.ts +2 -0
  76. package/dist/types/data-sdk/src/model/Timestamp.d.ts +1 -0
  77. package/dist/types/data-sdk/src/model/Uuid.d.ts +1 -0
  78. package/dist/types/data-sdk/src/model/VideoMimeType.d.ts +2 -0
  79. package/dist/types/data-sdk/src/model/eventTypes.d.ts +1 -0
  80. package/dist/types/data-sdk/src/model/healthStatuses.d.ts +1 -0
  81. package/dist/types/data-sdk/src/model/severities.d.ts +1 -0
  82. package/dist/types/data-sdk/src/model/videoMimeTypes.d.ts +1 -0
  83. package/package.json +2 -2
@@ -76,6 +76,7 @@ export declare class Device {
76
76
  disableRealtimeTelemetryPriorityIngestion(streamName: string): Promise<void>;
77
77
  getRemotePeer(): Promise<import("@formant/realtime-sdk/dist/model/IRtcPeer").IRtcPeer>;
78
78
  stopRealtimeConnection(): Promise<void>;
79
+ isInRealtimeSession(): Promise<boolean>;
79
80
  getAvailableCommands(): Promise<Command[]>;
80
81
  sendCommand(name: string, data?: string, time?: Date, metadata?: {}): Promise<any>;
81
82
  createCustomDataChannel(channelName: string, rtcConfig?: RTCDataChannelInit): Promise<DataChannel>;
@@ -1,5 +1,9 @@
1
1
  import { Device } from "./Device";
2
2
  import { IRtcPeer } from "@formant/realtime-sdk/dist/model/IRtcPeer";
3
+ import { IEventQuery } from "./model/IEventQuery";
4
+ import { IEvent } from "./model/IEvent";
5
+ import { IQuery } from "./model/IQuery";
6
+ import { IStreamData } from "./model/IStreamData";
3
7
  export interface User {
4
8
  firstName: string;
5
9
  lastName: string;
@@ -28,11 +32,12 @@ export declare class Fleet {
28
32
  static getRealtimeSessions(): Promise<{
29
33
  [key in string]: string[];
30
34
  }>;
31
- static isDeviceInRealtimeSession(deviceId: string): Promise<boolean>;
32
35
  static getRealtimeDevices(): Promise<Device[]>;
33
36
  static getLatestTelemetry(deviceIdOrDeviceIds?: string | string[]): Promise<any>;
34
37
  static getTelemetry(deviceIdOrDeviceIds: string | string[], streamNameOrStreamNames: string | string[], start: Date, end: Date, tags?: {
35
38
  [key in string]: string[];
36
39
  }): Promise<TelemetryResult[]>;
37
40
  static getFileUrl(uuid: string): Promise<string>;
41
+ static queryTelemetry(query: IQuery): Promise<IStreamData<keyof import("./model/IStreamTypeMap").IStreamTypeMap>[]>;
42
+ static queryEvents(query: IEventQuery): Promise<IEvent[]>;
38
43
  }
@@ -0,0 +1 @@
1
+ export declare type AggregateLevel = "year" | "month" | "week" | "day" | "hour" | "minute" | "second";
@@ -0,0 +1,2 @@
1
+ import { IAnnotationAreaTypeMap } from "./IAnnotationAreaTypeMap";
2
+ export declare type AnnotationAreaType = keyof IAnnotationAreaTypeMap;
@@ -0,0 +1 @@
1
+ export declare type EventSortableColumn = "device.name" | "time";
@@ -0,0 +1,2 @@
1
+ import { eventTypes } from "./eventTypes";
2
+ export declare type EventType = typeof eventTypes[number];
@@ -0,0 +1,2 @@
1
+ import { healthStatuses } from "./healthStatuses";
2
+ export declare type HealthStatus = typeof healthStatuses[number];
@@ -0,0 +1 @@
1
+ export declare type HexRgbColor = string;
@@ -0,0 +1,13 @@
1
+ import { IBaseEvent } from "./IBaseEvent";
2
+ import { IsoDate } from "./IsoDate";
3
+ import { ISpreadsheetIdRange } from "./ISpreadsheetIdRange";
4
+ import { ITaggedUsers } from "./ITaggedUsers";
5
+ import { Uuid } from "./Uuid";
6
+ export interface IAnnotation extends IBaseEvent<"annotation"> {
7
+ editedAt?: IsoDate;
8
+ userId: Uuid;
9
+ annotationTemplateId: Uuid;
10
+ taggedUsers?: ITaggedUsers | null;
11
+ publishedTo?: ISpreadsheetIdRange;
12
+ note?: string | null;
13
+ }
@@ -0,0 +1,4 @@
1
+ import { IBoundingBox } from "./IBoundingBox";
2
+ export interface IAnnotationAreaTypeMap {
3
+ "bounding box": IBoundingBox;
4
+ }
@@ -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,19 @@
1
+ import { EventType } from "./EventType";
2
+ import { IBaseEntity } from "./IBaseEntity";
3
+ import { IsoDate } from "./IsoDate";
4
+ import { ITags } from "./ITags";
5
+ import { StreamType } from "./StreamType";
6
+ import { Uuid } from "./Uuid";
7
+ export interface IBaseEvent<T extends EventType = EventType> extends IBaseEntity {
8
+ type?: T;
9
+ organizationId?: Uuid;
10
+ time: IsoDate;
11
+ endTime?: IsoDate | null;
12
+ message: string;
13
+ viewed?: boolean;
14
+ deviceId?: Uuid;
15
+ streamName?: string;
16
+ streamType?: StreamType;
17
+ tags?: ITags;
18
+ notificationEnabled?: boolean;
19
+ }
@@ -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,3 @@
1
+ import { ICommandEventBase } from "./ICommandEventBase";
2
+ export interface ICommandDeliveryEvent extends ICommandEventBase<"command-delivery"> {
3
+ }
@@ -0,0 +1,5 @@
1
+ import { IBaseEvent } from "./IBaseEvent";
2
+ import { Uuid } from "./Uuid";
3
+ export interface ICommandEventBase<T extends "command-request" | "command-delivery" | "command-response"> extends IBaseEvent<T> {
4
+ commandId: Uuid;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { ICommandEventBase } from "./ICommandEventBase";
2
+ import { Uuid } from "./Uuid";
3
+ export interface ICommandRequestEvent extends ICommandEventBase<"command-request"> {
4
+ userId?: Uuid;
5
+ }
@@ -0,0 +1,3 @@
1
+ import { ICommandEventBase } from "./ICommandEventBase";
2
+ export interface ICommandResponseEvent extends ICommandEventBase<"command-response"> {
3
+ }
@@ -0,0 +1,7 @@
1
+ import { IBaseEvent } from "./IBaseEvent";
2
+ import { IsoDate } from "./IsoDate";
3
+ import { Uuid } from "./Uuid";
4
+ export interface IComment extends IBaseEvent<"comment"> {
5
+ editedAt?: IsoDate;
6
+ userId: Uuid;
7
+ }
@@ -0,0 +1,5 @@
1
+ import { IBaseEvent } from "./IBaseEvent";
2
+ import { Severity } from "./Severity";
3
+ export interface ICustomEvent extends IBaseEvent<"custom"> {
4
+ severity?: Severity;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { IStreamTypeMap } from "./IStreamTypeMap";
2
+ import { StreamType } from "./StreamType";
3
+ import { Timestamp } from "./Timestamp";
4
+ export declare type IDataPoint<T extends StreamType = StreamType> = [
5
+ Timestamp,
6
+ IStreamTypeMap[T]
7
+ ];
@@ -0,0 +1,12 @@
1
+ import { IAnnotation } from "./IAnnotation";
2
+ import { ICommandDeliveryEvent } from "./ICommandDeliveryEvent";
3
+ import { ICommandRequestEvent } from "./ICommandRequestEvent";
4
+ import { ICommandResponseEvent } from "./ICommandResponseEvent";
5
+ import { IComment } from "./IComment";
6
+ import { ICustomEvent } from "./ICustomEvent";
7
+ import { IInterventionRequest } from "./IInterventionRequest";
8
+ import { IPortForwardingSessionRecord } from "./IPortForwardingSessionRecord";
9
+ import { ISystemEvent } from "./ISystemEvent";
10
+ import { ITeleopSessionRecord } from "./ITeleopSessionRecord";
11
+ import { ITriggeredEvent } from "./ITriggeredEvent";
12
+ export declare type IEvent = ITriggeredEvent | IInterventionRequest | ITeleopSessionRecord | IPortForwardingSessionRecord | ICommandRequestEvent | ICommandResponseEvent | ICommandDeliveryEvent | ICustomEvent | IComment | ISystemEvent | IAnnotation;
@@ -0,0 +1,19 @@
1
+ import { EventType } from "./EventType";
2
+ import { IFilter } from "./IFilter";
3
+ import { IsoDate } from "./IsoDate";
4
+ import { Severity } from "./Severity";
5
+ import { Uuid } from "./Uuid";
6
+ export interface IEventFilter extends IFilter {
7
+ id?: Uuid;
8
+ viewed?: boolean;
9
+ keyword?: string;
10
+ message?: string;
11
+ start?: IsoDate;
12
+ end?: IsoDate;
13
+ eventTypes?: EventType[];
14
+ notificationEnabled?: boolean;
15
+ userIds?: Uuid[];
16
+ annotationTemplateIds?: Uuid[];
17
+ disableNullMatches?: boolean;
18
+ severities?: Severity[];
19
+ }
@@ -0,0 +1,7 @@
1
+ import { IEventFilter } from "./IEventFilter";
2
+ import { IEventSort } from "./IEventSort";
3
+ export interface IEventQuery extends IEventFilter {
4
+ offset?: number;
5
+ count?: number;
6
+ sort?: IEventSort;
7
+ }
@@ -0,0 +1,6 @@
1
+ import { EventSortableColumn } from "./EventSortableColumn";
2
+ import { SortOrder } from "./SortOrder";
3
+ export interface IEventSort {
4
+ column: EventSortableColumn;
5
+ order: SortOrder;
6
+ }
@@ -0,0 +1,6 @@
1
+ export interface IFile {
2
+ url: string;
3
+ filename: string;
4
+ size: number;
5
+ previewUrl?: string;
6
+ }
@@ -0,0 +1,10 @@
1
+ import { StreamType } from "./StreamType";
2
+ import { ITagSets } from "./ITagSets";
3
+ import { Uuid } from "./Uuid";
4
+ export interface IFilter {
5
+ deviceIds?: Uuid[];
6
+ names?: string[];
7
+ types?: StreamType[];
8
+ tags?: ITagSets;
9
+ notNames?: string[];
10
+ }
@@ -0,0 +1,5 @@
1
+ import { ITransform } from "./ITransform";
2
+ export interface IGoal {
3
+ worldToLocal: ITransform;
4
+ pose: ITransform;
5
+ }
@@ -0,0 +1,4 @@
1
+ import { HealthStatus } from "./HealthStatus";
2
+ export interface IHealth {
3
+ status: HealthStatus;
4
+ }
@@ -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,9 @@
1
+ import { IBaseEvent } from "./IBaseEvent";
2
+ import { IInterventionResponse } from "./IInterventionResponse";
3
+ import { IInterventionTypeMap } from "./IInterventionTypeMap";
4
+ import { InterventionType } from "./InterventionType";
5
+ export interface IInterventionRequest<T extends InterventionType = InterventionType> extends IBaseEvent<"intervention-request"> {
6
+ interventionType: T;
7
+ data: IInterventionTypeMap[T]["request"];
8
+ responses?: IInterventionResponse<T>[];
9
+ }
@@ -0,0 +1,10 @@
1
+ import { IBaseEntity } from "./IBaseEntity";
2
+ import { IInterventionTypeMap } from "./IInterventionTypeMap";
3
+ import { InterventionType } from "./InterventionType";
4
+ import { Uuid } from "./Uuid";
5
+ export interface IInterventionResponse<T extends InterventionType = InterventionType> extends IBaseEntity {
6
+ userId?: Uuid;
7
+ interventionId: Uuid;
8
+ interventionType: T;
9
+ data: IInterventionTypeMap[T]["response"];
10
+ }
@@ -0,0 +1,20 @@
1
+ import { ILabelingRequestData } from "./ILabelingRequestData";
2
+ import { ILabelingResponseData } from "./ILabelingResponseData";
3
+ import { ISelectionRequestData } from "./ISelectionRequestData";
4
+ import { ISelectionResponseData } from "./ISelectionResponseData";
5
+ import { ITeleopRequestData } from "./ITeleopRequestData";
6
+ import { ITeleopResponseData } from "./ITeleopResponseData";
7
+ export interface IInterventionTypeMap {
8
+ selection: {
9
+ request: ISelectionRequestData;
10
+ response: ISelectionResponseData;
11
+ };
12
+ labeling: {
13
+ request: ILabelingRequestData;
14
+ response: ILabelingResponseData;
15
+ };
16
+ teleop: {
17
+ request: ITeleopRequestData;
18
+ response: ITeleopResponseData;
19
+ };
20
+ }
@@ -0,0 +1,4 @@
1
+ export interface ILabel {
2
+ value: string;
3
+ displayName?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export interface ILabeledPolygon {
2
+ vertices: [number, number][];
3
+ labels: string[];
4
+ }
@@ -0,0 +1,8 @@
1
+ import { ILabel } from "./ILabel";
2
+ import { ILabeledPolygon } from "./ILabeledPolygon";
3
+ export interface ILabelingRequestData {
4
+ instruction: string;
5
+ imageUrl: string;
6
+ labels: ILabel[];
7
+ hint?: ILabeledPolygon[];
8
+ }
@@ -0,0 +1,4 @@
1
+ import { ILabeledPolygon } from "./ILabeledPolygon";
2
+ export interface ILabelingResponseData {
3
+ value: ILabeledPolygon[];
4
+ }
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,6 @@
1
+ export interface ILocation {
2
+ latitude: number;
3
+ longitude: number;
4
+ altitude?: number;
5
+ orientation?: number;
6
+ }
@@ -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,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,6 @@
1
+ import { ITransform } from "./ITransform";
2
+ export interface IPointCloud {
3
+ url: string;
4
+ size?: number;
5
+ worldToLocal?: ITransform;
6
+ }
@@ -0,0 +1,3 @@
1
+ import { IRtcSessionRecord } from "./IRtcSessionRecord";
2
+ export interface IPortForwardingSessionRecord extends IRtcSessionRecord<"port-forwarding-session-record"> {
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,8 @@
1
+ import { AggregateLevel } from "./AggregateLevel";
2
+ import { IFilter } from "./IFilter";
3
+ import { IsoDate } from "./IsoDate";
4
+ export interface IQuery extends IFilter {
5
+ aggregate?: AggregateLevel;
6
+ start: IsoDate;
7
+ end: IsoDate;
8
+ }
@@ -0,0 +1,9 @@
1
+ import { Uuid } from "./Uuid";
2
+ import { IBaseEvent } from "./IBaseEvent";
3
+ import { IsoDate } from "./IsoDate";
4
+ export interface IRtcSessionRecord<T extends "teleop-session-record" | "port-forwarding-session-record"> extends IBaseEvent<T> {
5
+ sessionId: Uuid;
6
+ userId: Uuid;
7
+ deviceId: Uuid;
8
+ endTime: IsoDate;
9
+ }
@@ -0,0 +1,6 @@
1
+ export interface ISelectionRequestData {
2
+ instruction: string;
3
+ imageUrl: string;
4
+ options: string[];
5
+ hint?: number;
6
+ }
@@ -0,0 +1,3 @@
1
+ export interface ISelectionResponseData {
2
+ value: number;
3
+ }
@@ -0,0 +1,4 @@
1
+ export interface ISpreadsheetIdRange {
2
+ spreadsheetId: string;
3
+ range: string;
4
+ }
@@ -0,0 +1,11 @@
1
+ import { IDataPoint } from "./IDataPoint";
2
+ import { ITags } from "./ITags";
3
+ import { StreamType } from "./StreamType";
4
+ import { Uuid } from "./Uuid";
5
+ export interface IStreamData<T extends StreamType = StreamType> {
6
+ deviceId: Uuid;
7
+ name: string;
8
+ type: T;
9
+ tags: ITags;
10
+ points: IDataPoint<T>[];
11
+ }
@@ -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,3 @@
1
+ import { IBaseEvent } from "./IBaseEvent";
2
+ export interface ISystemEvent extends IBaseEvent<"system"> {
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface ITagSets {
2
+ [key: string]: string[];
3
+ }
@@ -0,0 +1,4 @@
1
+ import { Uuid } from "./Uuid";
2
+ export interface ITaggedUsers {
3
+ [key: string]: Uuid[];
4
+ }
@@ -0,0 +1,3 @@
1
+ export interface ITags {
2
+ [key: string]: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface ITeleopRequestData {
2
+ instruction: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ export interface ITeleopResponseData {
2
+ state: "inProgress" | "requestAssistance" | "success" | "failure";
3
+ notes?: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ import { IRtcSessionRecord } from "./IRtcSessionRecord";
2
+ export interface ITeleopSessionRecord extends IRtcSessionRecord<"teleop-session-record"> {
3
+ }
@@ -0,0 +1,6 @@
1
+ import { IQuaternion } from "./IQuaternion";
2
+ import { IVector3 } from "./IVector3";
3
+ export interface ITransform {
4
+ translation: IVector3;
5
+ rotation: IQuaternion;
6
+ }
@@ -0,0 +1,7 @@
1
+ import { ITransform } from "./ITransform";
2
+ export interface ITransformNode {
3
+ name?: string;
4
+ transform?: ITransform;
5
+ children?: ITransformNode[];
6
+ url?: string;
7
+ }
@@ -0,0 +1,10 @@
1
+ import { IBaseEvent } from "./IBaseEvent";
2
+ import { IsoDate } from "./IsoDate";
3
+ import { Severity } from "./Severity";
4
+ import { Uuid } from "./Uuid";
5
+ export interface ITriggeredEvent extends IBaseEvent<"triggered-event"> {
6
+ severity: Severity;
7
+ eventTriggerId: Uuid;
8
+ interval: number;
9
+ intervalStart?: IsoDate;
10
+ }
@@ -0,0 +1,5 @@
1
+ import { IVector3 } from "./IVector3";
2
+ export interface ITwist {
3
+ linear: IVector3;
4
+ angular: IVector3;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface IVector3 {
2
+ x: number;
3
+ y: number;
4
+ z: number;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { VideoMimeType } from "./VideoMimeType";
2
+ export interface IVideo {
3
+ url: string;
4
+ size?: number;
5
+ duration: number;
6
+ mimeType: VideoMimeType;
7
+ }
@@ -0,0 +1,2 @@
1
+ import { IInterventionTypeMap } from "./IInterventionTypeMap";
2
+ export declare type InterventionType = keyof IInterventionTypeMap;
@@ -0,0 +1 @@
1
+ export declare type IsoDate = string;
@@ -0,0 +1,2 @@
1
+ import { severities } from "./severities";
2
+ export declare type Severity = typeof severities[number];
@@ -0,0 +1 @@
1
+ export declare type SortOrder = "asc" | "desc";
@@ -0,0 +1,2 @@
1
+ import { IStreamTypeMap } from "./IStreamTypeMap";
2
+ export declare type StreamType = keyof IStreamTypeMap;
@@ -0,0 +1 @@
1
+ export declare type Timestamp = number;
@@ -0,0 +1 @@
1
+ export declare type Uuid = string;