@formant/data-sdk 0.0.62 → 0.0.65
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/data-sdk.es.js +2 -19354
- package/dist/data-sdk.umd.js +2 -44
- package/dist/types/data-sdk/src/App.d.ts +41 -0
- package/dist/types/data-sdk/src/DataChannel.d.ts +2 -3
- package/dist/types/data-sdk/src/Fleet.d.ts +6 -7
- package/dist/types/data-sdk/src/main.d.ts +95 -1
- 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 +8 -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/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 +4 -4
|
@@ -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,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"];
|
package/package.json
CHANGED
|
@@ -18,22 +18,22 @@
|
|
|
18
18
|
"require": "./dist/data-sdk.umd.js"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
"version": "0.0.
|
|
21
|
+
"version": "0.0.65",
|
|
22
22
|
"scripts": {
|
|
23
23
|
"dev": "vite --port 9146",
|
|
24
24
|
"build": "tsc && vite build",
|
|
25
25
|
"serve": "vite preview",
|
|
26
26
|
"types": "tsc src/*.ts --lib ESNext,DOM --declaration --emitDeclarationOnly --downlevelIteration --outDir dist/types",
|
|
27
|
-
"docs": "typedoc src/main.ts --theme
|
|
27
|
+
"docs": "typedoc src/main.ts --theme default --out ../../docs/data-sdk/"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"typedoc": "^0.21.9",
|
|
31
30
|
"typescript": "^4.3.2",
|
|
32
31
|
"vite": "^2.5.4"
|
|
33
32
|
},
|
|
34
33
|
"types": "./dist/types/data-sdk/src/main.d.ts",
|
|
35
34
|
"dependencies": {
|
|
35
|
+
"@formant/realtime-sdk": "0.0.7",
|
|
36
36
|
"@types/google-protobuf": "^3.15.5",
|
|
37
|
-
"
|
|
37
|
+
"typedoc": "^0.22.13"
|
|
38
38
|
}
|
|
39
39
|
}
|