@formant/realtime-sdk 0.0.4 → 0.0.5
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/client/AuthClient.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/model/Feature.d.ts +3 -0
- package/dist/model/IColorRGBA.d.ts +6 -0
- package/dist/model/IGetFeaturesResponse.d.ts +4 -0
- package/dist/model/IMarker3D.d.ts +23 -0
- package/dist/model/IMarker3DArray.d.ts +4 -0
- package/dist/model/IUser.d.ts +2 -2
- package/dist/model/Marker3DAction.d.ts +2 -0
- package/dist/model/Marker3DType.d.ts +2 -0
- package/dist/model/features.d.ts +2 -0
- package/dist/model/marker3DActions.d.ts +1 -0
- package/dist/model/marker3DTypes.d.ts +1 -0
- package/dist/model/rtcStreamTypes.d.ts +2 -1
- package/dist/protos/api/signaling/v1/signaling.proto +7 -0
- package/dist/protos/api/signaling/v1/signaling_pb.d.ts +9 -0
- package/dist/protos/api/signaling/v1/signaling_pb.js +41 -1
- package/dist/rtc-client/models/IRtcStreamPayload.d.ts +2 -0
- package/package.json +2 -2
- package/dist/model/Role.d.ts +0 -2
- package/dist/model/roles.d.ts +0 -1
|
@@ -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
|
+
}
|
package/dist/model/IUser.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { IBaseEntity } from "./IBaseEntity";
|
|
2
2
|
import { IsoDate } from "./IsoDate";
|
|
3
3
|
import { ITags } from "./ITags";
|
|
4
|
-
import { Role } from "./Role";
|
|
5
4
|
import { Uuid } from "./Uuid";
|
|
6
5
|
export interface IUser extends IBaseEntity {
|
|
7
6
|
organizationId?: Uuid;
|
|
8
7
|
email: string;
|
|
9
8
|
firstName: string;
|
|
10
9
|
lastName: string;
|
|
11
|
-
|
|
10
|
+
roleId: Uuid;
|
|
11
|
+
teamId?: Uuid | null;
|
|
12
12
|
tags: ITags;
|
|
13
13
|
phoneNumber?: string;
|
|
14
14
|
enabled?: boolean;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const agentFeatures: readonly ["telemetry", "internalTelemetry", "teleop", "ssh", "customEvents", "triggeredEvents", "portForwarding", "commands", "interventions", "onDemand", "appConfig", "blobStorage"];
|
|
2
|
+
export declare const features: readonly ["telemetry", "internalTelemetry", "teleop", "ssh", "customEvents", "triggeredEvents", "portForwarding", "commands", "interventions", "onDemand", "appConfig", "blobStorage", "events", "analytics", "annotations", "observability", "diagnostics", "advancedConfiguration", "dataExport", "onDemand", "share", "adapters", "s3Export", "fileStorage", "roleViewer", "teams"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const marker3DActions: readonly ["add", "modify", "delete", "delete_all"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const marker3DTypes: readonly ["arrow", "cube", "sphere", "cylinder", "line_strip", "line_list", "cube_list", "sphere_list", "points", "text_view_facing", "mesh_resource", "triangle_list"];
|
|
@@ -15,7 +15,8 @@ export declare const rtcGoalIDStreamType: "goal-id";
|
|
|
15
15
|
export declare const rtcJointStateStreamType: "joint-state";
|
|
16
16
|
export declare const rtcPoseWithCovarianceStreamType: "pose-with-covariance";
|
|
17
17
|
export declare const rtcPointCloudStreamType: "point-cloud";
|
|
18
|
+
export declare const rtcMarkerArrayStreamType: "marker-array";
|
|
18
19
|
export declare const rtcPointStreamType: "point";
|
|
19
|
-
export declare const rtcStreamTypes: readonly ["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", "point"];
|
|
20
|
+
export declare const rtcStreamTypes: readonly ["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", "point", "marker-array"];
|
|
20
21
|
export declare const rtcImageStreamTypes: string[];
|
|
21
22
|
export declare const rtcSystemStreamTypes: string[];
|
|
@@ -31,6 +31,12 @@ message Peer {
|
|
|
31
31
|
google.protobuf.Int64Value peer_created_timestamp = 6; // No value means it's for a new peer
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
enum SessionType {
|
|
35
|
+
UNKNOWN = 0;
|
|
36
|
+
TELEOP = 1;
|
|
37
|
+
PORT_FORWARD = 2;
|
|
38
|
+
}
|
|
39
|
+
|
|
34
40
|
message Signal {
|
|
35
41
|
google.protobuf.StringValue session_id = 1; // No value means it's for a new session
|
|
36
42
|
google.protobuf.Int64Value session_created_timestamp = 2; // No value means it's for a new session
|
|
@@ -39,6 +45,7 @@ message Signal {
|
|
|
39
45
|
string payload = 5;
|
|
40
46
|
string ice_servers = 6; // JSON-encoded RTCIceServer list
|
|
41
47
|
string ice_transport_policy = 7;
|
|
48
|
+
SessionType session_type = 8;
|
|
42
49
|
}
|
|
43
50
|
|
|
44
51
|
message CreatePeerRequest {}
|
|
@@ -75,6 +75,9 @@ export class Signal extends jspb.Message {
|
|
|
75
75
|
getIceTransportPolicy(): string;
|
|
76
76
|
setIceTransportPolicy(value: string): Signal;
|
|
77
77
|
|
|
78
|
+
getSessionType(): SessionType;
|
|
79
|
+
setSessionType(value: SessionType): Signal;
|
|
80
|
+
|
|
78
81
|
serializeBinary(): Uint8Array;
|
|
79
82
|
toObject(includeInstance?: boolean): Signal.AsObject;
|
|
80
83
|
static toObject(includeInstance: boolean, msg: Signal): Signal.AsObject;
|
|
@@ -92,6 +95,7 @@ export namespace Signal {
|
|
|
92
95
|
payload: string,
|
|
93
96
|
iceServers: string,
|
|
94
97
|
iceTransportPolicy: string,
|
|
98
|
+
sessionType: SessionType,
|
|
95
99
|
}
|
|
96
100
|
}
|
|
97
101
|
|
|
@@ -345,3 +349,8 @@ export namespace ReceiveSignalStreamResponse {
|
|
|
345
349
|
}
|
|
346
350
|
}
|
|
347
351
|
|
|
352
|
+
export enum SessionType {
|
|
353
|
+
UNKNOWN = 0,
|
|
354
|
+
TELEOP = 1,
|
|
355
|
+
PORT_FORWARD = 2,
|
|
356
|
+
}
|
|
@@ -32,6 +32,7 @@ goog.exportSymbol('proto.v1.signaling.api.RefreshPeerRequest', null, global);
|
|
|
32
32
|
goog.exportSymbol('proto.v1.signaling.api.RefreshPeerResponse', null, global);
|
|
33
33
|
goog.exportSymbol('proto.v1.signaling.api.SendSignalRequest', null, global);
|
|
34
34
|
goog.exportSymbol('proto.v1.signaling.api.SendSignalResponse', null, global);
|
|
35
|
+
goog.exportSymbol('proto.v1.signaling.api.SessionType', null, global);
|
|
35
36
|
goog.exportSymbol('proto.v1.signaling.api.Signal', null, global);
|
|
36
37
|
/**
|
|
37
38
|
* Generated by JsPbCodeGenerator.
|
|
@@ -776,7 +777,8 @@ proto.v1.signaling.api.Signal.toObject = function(includeInstance, msg) {
|
|
|
776
777
|
receiverId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
777
778
|
payload: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
778
779
|
iceServers: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
779
|
-
iceTransportPolicy: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
780
|
+
iceTransportPolicy: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
781
|
+
sessionType: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
780
782
|
};
|
|
781
783
|
|
|
782
784
|
if (includeInstance) {
|
|
@@ -843,6 +845,10 @@ proto.v1.signaling.api.Signal.deserializeBinaryFromReader = function(msg, reader
|
|
|
843
845
|
var value = /** @type {string} */ (reader.readString());
|
|
844
846
|
msg.setIceTransportPolicy(value);
|
|
845
847
|
break;
|
|
848
|
+
case 8:
|
|
849
|
+
var value = /** @type {!proto.v1.signaling.api.SessionType} */ (reader.readEnum());
|
|
850
|
+
msg.setSessionType(value);
|
|
851
|
+
break;
|
|
846
852
|
default:
|
|
847
853
|
reader.skipField();
|
|
848
854
|
break;
|
|
@@ -923,6 +929,13 @@ proto.v1.signaling.api.Signal.serializeBinaryToWriter = function(message, writer
|
|
|
923
929
|
f
|
|
924
930
|
);
|
|
925
931
|
}
|
|
932
|
+
f = message.getSessionType();
|
|
933
|
+
if (f !== 0.0) {
|
|
934
|
+
writer.writeEnum(
|
|
935
|
+
8,
|
|
936
|
+
f
|
|
937
|
+
);
|
|
938
|
+
}
|
|
926
939
|
};
|
|
927
940
|
|
|
928
941
|
|
|
@@ -1090,6 +1103,24 @@ proto.v1.signaling.api.Signal.prototype.setIceTransportPolicy = function(value)
|
|
|
1090
1103
|
};
|
|
1091
1104
|
|
|
1092
1105
|
|
|
1106
|
+
/**
|
|
1107
|
+
* optional SessionType session_type = 8;
|
|
1108
|
+
* @return {!proto.v1.signaling.api.SessionType}
|
|
1109
|
+
*/
|
|
1110
|
+
proto.v1.signaling.api.Signal.prototype.getSessionType = function() {
|
|
1111
|
+
return /** @type {!proto.v1.signaling.api.SessionType} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
1112
|
+
};
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* @param {!proto.v1.signaling.api.SessionType} value
|
|
1117
|
+
* @return {!proto.v1.signaling.api.Signal} returns this
|
|
1118
|
+
*/
|
|
1119
|
+
proto.v1.signaling.api.Signal.prototype.setSessionType = function(value) {
|
|
1120
|
+
return jspb.Message.setProto3EnumField(this, 8, value);
|
|
1121
|
+
};
|
|
1122
|
+
|
|
1123
|
+
|
|
1093
1124
|
|
|
1094
1125
|
|
|
1095
1126
|
|
|
@@ -2951,4 +2982,13 @@ proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.hasSignal = functio
|
|
|
2951
2982
|
};
|
|
2952
2983
|
|
|
2953
2984
|
|
|
2985
|
+
/**
|
|
2986
|
+
* @enum {number}
|
|
2987
|
+
*/
|
|
2988
|
+
proto.v1.signaling.api.SessionType = {
|
|
2989
|
+
UNKNOWN: 0,
|
|
2990
|
+
TELEOP: 1,
|
|
2991
|
+
PORT_FORWARD: 2
|
|
2992
|
+
};
|
|
2993
|
+
|
|
2954
2994
|
goog.object.extend(exports, proto.v1.signaling.api);
|
|
@@ -3,6 +3,7 @@ import { ICompressedImage } from "../../model/ICompressedImage";
|
|
|
3
3
|
import { IGoalID } from "../../model/IGoalID";
|
|
4
4
|
import { IH264VideoFrame } from "../../model/IH264VideoFrame";
|
|
5
5
|
import { IJointState } from "../../model/IJointState";
|
|
6
|
+
import { IMarker3DArray } from "../../model/IMarker3DArray";
|
|
6
7
|
import { IPoint } from "../../model/IPoint";
|
|
7
8
|
import { IPoseWithCovariance } from "../../model/IPoseWithCovariance";
|
|
8
9
|
import { ITransform } from "../../model/ITransform";
|
|
@@ -38,4 +39,5 @@ export interface IRtcStreamPayload {
|
|
|
38
39
|
poseWithCovariance?: IPoseWithCovariance;
|
|
39
40
|
pointCloud?: IRtcPointCloud;
|
|
40
41
|
point?: IPoint;
|
|
42
|
+
markerArray?: IMarker3DArray;
|
|
41
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formant/realtime-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/realtime-sdk/src/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"fork-ts-checker-webpack-plugin": "^4.1.0",
|
|
27
27
|
"terser-webpack-plugin": "^2.3.5",
|
|
28
28
|
"ts-loader": "^6.2.1",
|
|
29
|
-
"tsc-alias": "^1.
|
|
29
|
+
"tsc-alias": "^1.4.1",
|
|
30
30
|
"webpack": "^4.42.0",
|
|
31
31
|
"webpack-bundle-analyzer": "^3.6.1"
|
|
32
32
|
},
|
package/dist/model/Role.d.ts
DELETED
package/dist/model/roles.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const roles: readonly ["customer", "viewer", "operator", "administrator"];
|