@formant/data-sdk 0.0.90 → 0.0.91
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.
- package/dist/types/common/defined.d.ts +3 -0
- package/dist/types/common/delay.d.ts +1 -0
- package/dist/types/data-sdk/src/App.d.ts +104 -0
- package/dist/types/data-sdk/src/Authentication.d.ts +28 -0
- package/dist/types/data-sdk/src/CaptureStream.d.ts +18 -0
- package/dist/types/data-sdk/src/DataChannel.d.ts +18 -0
- package/dist/types/data-sdk/src/Device.d.ts +112 -0
- package/dist/types/data-sdk/src/Fleet.d.ts +40 -0
- package/dist/types/data-sdk/src/KeyValue.d.ts +4 -0
- package/dist/types/data-sdk/src/Manipulator.d.ts +20 -0
- package/dist/types/data-sdk/src/PeerDevice.d.ts +37 -0
- package/dist/types/data-sdk/src/RequestDataChannel.d.ts +23 -0
- package/dist/types/data-sdk/src/config.d.ts +1 -0
- package/dist/types/data-sdk/src/main.d.ts +105 -0
- package/dist/types/data-sdk/src/model/AccessLevel.d.ts +5 -0
- package/dist/types/data-sdk/src/model/AggregateLevel.d.ts +1 -0
- package/dist/types/data-sdk/src/model/AnnotationAreaType.d.ts +2 -0
- package/dist/types/data-sdk/src/model/AnnotationType.d.ts +2 -0
- package/dist/types/data-sdk/src/model/EventSortableColumn.d.ts +1 -0
- package/dist/types/data-sdk/src/model/EventType.d.ts +2 -0
- package/dist/types/data-sdk/src/model/HealthStatus.d.ts +2 -0
- package/dist/types/data-sdk/src/model/HexRgbColor.d.ts +1 -0
- package/dist/types/data-sdk/src/model/IAnnotation.d.ts +13 -0
- package/dist/types/data-sdk/src/model/IAnnotationAreaTypeMap.d.ts +4 -0
- package/dist/types/data-sdk/src/model/IBaseEntity.d.ts +7 -0
- package/dist/types/data-sdk/src/model/IBaseEvent.d.ts +19 -0
- package/dist/types/data-sdk/src/model/IBattery.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IBitset.d.ts +4 -0
- package/dist/types/data-sdk/src/model/IBoundingBox.d.ts +6 -0
- package/dist/types/data-sdk/src/model/ICommandDeliveryEvent.d.ts +3 -0
- package/dist/types/data-sdk/src/model/ICommandEventBase.d.ts +5 -0
- package/dist/types/data-sdk/src/model/ICommandParameter.d.ts +9 -0
- package/dist/types/data-sdk/src/model/ICommandRequest.d.ts +9 -0
- package/dist/types/data-sdk/src/model/ICommandRequestEvent.d.ts +5 -0
- package/dist/types/data-sdk/src/model/ICommandResponse.d.ts +13 -0
- package/dist/types/data-sdk/src/model/ICommandResponseEvent.d.ts +3 -0
- package/dist/types/data-sdk/src/model/IComment.d.ts +7 -0
- package/dist/types/data-sdk/src/model/IConfigurationMap.d.ts +3 -0
- package/dist/types/data-sdk/src/model/ICustomEvent.d.ts +5 -0
- package/dist/types/data-sdk/src/model/IDataPoint.d.ts +7 -0
- package/dist/types/data-sdk/src/model/IEvent.d.ts +12 -0
- package/dist/types/data-sdk/src/model/IEventFilter.d.ts +19 -0
- package/dist/types/data-sdk/src/model/IEventQuery.d.ts +7 -0
- package/dist/types/data-sdk/src/model/IEventSort.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IFieldParametersTypeMap.d.ts +8 -0
- package/dist/types/data-sdk/src/model/IFile.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IFileInfo.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IFilter.d.ts +10 -0
- package/dist/types/data-sdk/src/model/IGoal.d.ts +5 -0
- package/dist/types/data-sdk/src/model/IGoalID.d.ts +3 -0
- package/dist/types/data-sdk/src/model/IHealth.d.ts +4 -0
- package/dist/types/data-sdk/src/model/IImage.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IImageAnnotation.d.ts +9 -0
- package/dist/types/data-sdk/src/model/IInterventionRequest.d.ts +9 -0
- package/dist/types/data-sdk/src/model/IInterventionResponse.d.ts +10 -0
- package/dist/types/data-sdk/src/model/IInterventionTypeMap.d.ts +20 -0
- package/dist/types/data-sdk/src/model/ILabel.d.ts +4 -0
- package/dist/types/data-sdk/src/model/ILabeledPolygon.d.ts +4 -0
- package/dist/types/data-sdk/src/model/ILabelingRequestData.d.ts +8 -0
- package/dist/types/data-sdk/src/model/ILabelingResponseData.d.ts +4 -0
- package/dist/types/data-sdk/src/model/ILocalization.d.ts +12 -0
- package/dist/types/data-sdk/src/model/ILocation.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IMap.d.ts +10 -0
- package/dist/types/data-sdk/src/model/INumericSetEntry.d.ts +5 -0
- package/dist/types/data-sdk/src/model/IOdometry.d.ts +7 -0
- package/dist/types/data-sdk/src/model/IPath.d.ts +5 -0
- package/dist/types/data-sdk/src/model/IPointCloud.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IPortForwardingSessionRecord.d.ts +3 -0
- package/dist/types/data-sdk/src/model/IQuaternion.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IQuery.d.ts +9 -0
- package/dist/types/data-sdk/src/model/IRtcSessionRecord.d.ts +9 -0
- package/dist/types/data-sdk/src/model/ISelectionRequestData.d.ts +6 -0
- package/dist/types/data-sdk/src/model/ISelectionResponseData.d.ts +3 -0
- package/dist/types/data-sdk/src/model/ISheetParameters.d.ts +5 -0
- package/dist/types/data-sdk/src/model/ISpreadsheetIdRange.d.ts +4 -0
- package/dist/types/data-sdk/src/model/IStreamCurrentValue.d.ts +13 -0
- package/dist/types/data-sdk/src/model/IStreamData.d.ts +11 -0
- package/dist/types/data-sdk/src/model/IStreamTypeMap.d.ts +27 -0
- package/dist/types/data-sdk/src/model/ISystemEvent.d.ts +3 -0
- package/dist/types/data-sdk/src/model/ITagParameters.d.ts +3 -0
- package/dist/types/data-sdk/src/model/ITagSets.d.ts +3 -0
- package/dist/types/data-sdk/src/model/ITaggedUsers.d.ts +4 -0
- package/dist/types/data-sdk/src/model/ITags.d.ts +3 -0
- package/dist/types/data-sdk/src/model/ITeleopRequestData.d.ts +3 -0
- package/dist/types/data-sdk/src/model/ITeleopResponseData.d.ts +4 -0
- package/dist/types/data-sdk/src/model/ITeleopSessionRecord.d.ts +3 -0
- package/dist/types/data-sdk/src/model/ITransform.d.ts +6 -0
- package/dist/types/data-sdk/src/model/ITransformNode.d.ts +7 -0
- package/dist/types/data-sdk/src/model/ITriggeredEvent.d.ts +10 -0
- package/dist/types/data-sdk/src/model/ITwist.d.ts +5 -0
- package/dist/types/data-sdk/src/model/IUserParameters.d.ts +4 -0
- package/dist/types/data-sdk/src/model/IVector3.d.ts +5 -0
- package/dist/types/data-sdk/src/model/IVideo.d.ts +7 -0
- package/dist/types/data-sdk/src/model/InterventionType.d.ts +2 -0
- package/dist/types/data-sdk/src/model/IsoDate.d.ts +1 -0
- package/dist/types/data-sdk/src/model/Severity.d.ts +2 -0
- package/dist/types/data-sdk/src/model/SortOrder.d.ts +1 -0
- package/dist/types/data-sdk/src/model/StreamType.d.ts +2 -0
- package/dist/types/data-sdk/src/model/Timestamp.d.ts +1 -0
- package/dist/types/data-sdk/src/model/Uuid.d.ts +1 -0
- package/dist/types/data-sdk/src/model/VideoMimeType.d.ts +2 -0
- package/dist/types/data-sdk/src/model/accessLevels.d.ts +1 -0
- package/dist/types/data-sdk/src/model/aggregateLevels.d.ts +2 -0
- package/dist/types/data-sdk/src/model/annotationTypes.d.ts +1 -0
- package/dist/types/data-sdk/src/model/eventTypes.d.ts +1 -0
- package/dist/types/data-sdk/src/model/healthStatuses.d.ts +1 -0
- package/dist/types/data-sdk/src/model/interventionTypes.d.ts +1 -0
- package/dist/types/data-sdk/src/model/severities.d.ts +1 -0
- package/dist/types/data-sdk/src/model/videoMimeTypes.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IsoDate } from "./IsoDate";
|
|
2
|
+
import { ITags } from "./ITags";
|
|
3
|
+
import { StreamType } from "./StreamType";
|
|
4
|
+
import { Uuid } from "./Uuid";
|
|
5
|
+
export interface ICommandResponse {
|
|
6
|
+
time: IsoDate;
|
|
7
|
+
message: string;
|
|
8
|
+
success: boolean;
|
|
9
|
+
replyToCommandRequestId: Uuid;
|
|
10
|
+
streamName?: string;
|
|
11
|
+
streamType?: StreamType;
|
|
12
|
+
tags?: ITags;
|
|
13
|
+
}
|
|
@@ -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,8 @@
|
|
|
1
|
+
import { ISheetParameters } from "./ISheetParameters";
|
|
2
|
+
import { ITagParameters } from "./ITagParameters";
|
|
3
|
+
import { IUserParameters } from "./IUserParameters";
|
|
4
|
+
export interface IFieldParametersTypeMap {
|
|
5
|
+
tag: ITagParameters;
|
|
6
|
+
sheet: ISheetParameters;
|
|
7
|
+
user: IUserParameters;
|
|
8
|
+
}
|
|
@@ -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,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,9 @@
|
|
|
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
|
+
latestOnly?: boolean;
|
|
9
|
+
}
|
|
@@ -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,13 @@
|
|
|
1
|
+
import { IsoDate } from "./IsoDate";
|
|
2
|
+
import { IStreamTypeMap } from "./IStreamTypeMap";
|
|
3
|
+
import { ITags } from "./ITags";
|
|
4
|
+
import { StreamType } from "./StreamType";
|
|
5
|
+
import { Uuid } from "./Uuid";
|
|
6
|
+
export interface IStreamCurrentValue<T extends StreamType = any> {
|
|
7
|
+
deviceId: Uuid;
|
|
8
|
+
streamName: string;
|
|
9
|
+
streamType: StreamType;
|
|
10
|
+
tags: ITags;
|
|
11
|
+
currentValue: IStreamTypeMap[T];
|
|
12
|
+
currentValueTime: IsoDate;
|
|
13
|
+
}
|
|
@@ -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,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 @@
|
|
|
1
|
+
export declare type IsoDate = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type SortOrder = "asc" | "desc";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type Timestamp = number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type Uuid = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const accessLevels: readonly ["viewer", "operator", "administrator"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const annotationTypes: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const eventTypes: readonly ["triggered-event", "intervention-request", "teleop-session-record", "port-forwarding-session-record", "command-request", "command-response", "command-delivery", "custom", "comment", "system", "annotation"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const healthStatuses: readonly ["unknown", "operational", "offline", "error"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const interventionTypes: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const severities: readonly ["info", "warning", "error", "critical"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const videoMimeTypes: readonly ["video/mp4"];
|