@formant/realtime-sdk 0.0.1 → 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/client/LanAgentClient.d.ts +7 -0
- package/dist/common/config/index.d.ts +1 -0
- package/dist/common/narrowError.d.ts +1 -1
- 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/IJointState.d.ts +4 -2
- package/dist/model/IMarker3D.d.ts +23 -0
- package/dist/model/IMarker3DArray.d.ts +4 -0
- package/dist/model/IPoint.d.ts +2 -0
- package/dist/model/IPoseWithCovariance.d.ts +5 -0
- package/dist/model/IPostLanRtcOfferRequest.d.ts +3 -0
- package/dist/model/IPostLanRtcOfferResponse.d.ts +3 -0
- package/dist/model/IUser.d.ts +3 -2
- package/dist/model/Marker3DAction.d.ts +2 -0
- package/dist/model/Marker3DType.d.ts +2 -0
- package/dist/model/bytes.d.ts +9 -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 +6 -1
- package/dist/protos/api/signaling/v1/signaling.proto +15 -1
- package/dist/protos/api/signaling/v1/signaling_grpc_pb.js +33 -0
- package/dist/protos/api/signaling/v1/signaling_grpc_web_pb.d.ts +12 -0
- package/dist/protos/api/signaling/v1/signaling_grpc_web_pb.js +80 -0
- package/dist/protos/api/signaling/v1/signaling_pb.d.ts +41 -0
- package/dist/protos/api/signaling/v1/signaling_pb.js +316 -1
- package/dist/rtc-client/RtcClient.d.ts +9 -0
- package/dist/rtc-client/RtcConnection.d.ts +4 -2
- package/dist/rtc-client/models/IRtcAgentInfo.d.ts +3 -0
- package/dist/rtc-client/models/IRtcClientConfiguration.d.ts +10 -5
- package/dist/rtc-client/models/IRtcConnectionBaseConfiguration.d.ts +14 -0
- package/dist/rtc-client/models/IRtcConnectionConfiguration.d.ts +6 -15
- package/dist/rtc-client/models/IRtcConnectionRemoteConfiguration.d.ts +6 -0
- package/dist/rtc-client/models/IRtcPointCloud.d.ts +5 -0
- package/dist/rtc-client/models/IRtcStreamPayload.d.ts +10 -0
- package/dist/rtc-client/models/IStreamControl.d.ts +4 -1
- package/package.json +33 -33
- package/dist/1.index.js +0 -1
- package/dist/model/Role.d.ts +0 -2
- package/dist/model/roles.d.ts +0 -1
|
@@ -21,6 +21,8 @@ goog.exportSymbol('proto.v1.signaling.api.CreatePeerRequest', null, global);
|
|
|
21
21
|
goog.exportSymbol('proto.v1.signaling.api.CreatePeerResponse', null, global);
|
|
22
22
|
goog.exportSymbol('proto.v1.signaling.api.DeletePeerRequest', null, global);
|
|
23
23
|
goog.exportSymbol('proto.v1.signaling.api.DeletePeerResponse', null, global);
|
|
24
|
+
goog.exportSymbol('proto.v1.signaling.api.GetIceServersRequest', null, global);
|
|
25
|
+
goog.exportSymbol('proto.v1.signaling.api.GetIceServersResponse', null, global);
|
|
24
26
|
goog.exportSymbol('proto.v1.signaling.api.GetPeersRequest', null, global);
|
|
25
27
|
goog.exportSymbol('proto.v1.signaling.api.GetPeersResponse', null, global);
|
|
26
28
|
goog.exportSymbol('proto.v1.signaling.api.Peer', null, global);
|
|
@@ -30,6 +32,7 @@ goog.exportSymbol('proto.v1.signaling.api.RefreshPeerRequest', null, global);
|
|
|
30
32
|
goog.exportSymbol('proto.v1.signaling.api.RefreshPeerResponse', null, global);
|
|
31
33
|
goog.exportSymbol('proto.v1.signaling.api.SendSignalRequest', null, global);
|
|
32
34
|
goog.exportSymbol('proto.v1.signaling.api.SendSignalResponse', null, global);
|
|
35
|
+
goog.exportSymbol('proto.v1.signaling.api.SessionType', null, global);
|
|
33
36
|
goog.exportSymbol('proto.v1.signaling.api.Signal', null, global);
|
|
34
37
|
/**
|
|
35
38
|
* Generated by JsPbCodeGenerator.
|
|
@@ -241,6 +244,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
241
244
|
*/
|
|
242
245
|
proto.v1.signaling.api.GetPeersResponse.displayName = 'proto.v1.signaling.api.GetPeersResponse';
|
|
243
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* Generated by JsPbCodeGenerator.
|
|
249
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
250
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
251
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
252
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
253
|
+
* valid.
|
|
254
|
+
* @extends {jspb.Message}
|
|
255
|
+
* @constructor
|
|
256
|
+
*/
|
|
257
|
+
proto.v1.signaling.api.GetIceServersRequest = function(opt_data) {
|
|
258
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
259
|
+
};
|
|
260
|
+
goog.inherits(proto.v1.signaling.api.GetIceServersRequest, jspb.Message);
|
|
261
|
+
if (goog.DEBUG && !COMPILED) {
|
|
262
|
+
/**
|
|
263
|
+
* @public
|
|
264
|
+
* @override
|
|
265
|
+
*/
|
|
266
|
+
proto.v1.signaling.api.GetIceServersRequest.displayName = 'proto.v1.signaling.api.GetIceServersRequest';
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Generated by JsPbCodeGenerator.
|
|
270
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
271
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
272
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
273
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
274
|
+
* valid.
|
|
275
|
+
* @extends {jspb.Message}
|
|
276
|
+
* @constructor
|
|
277
|
+
*/
|
|
278
|
+
proto.v1.signaling.api.GetIceServersResponse = function(opt_data) {
|
|
279
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
280
|
+
};
|
|
281
|
+
goog.inherits(proto.v1.signaling.api.GetIceServersResponse, jspb.Message);
|
|
282
|
+
if (goog.DEBUG && !COMPILED) {
|
|
283
|
+
/**
|
|
284
|
+
* @public
|
|
285
|
+
* @override
|
|
286
|
+
*/
|
|
287
|
+
proto.v1.signaling.api.GetIceServersResponse.displayName = 'proto.v1.signaling.api.GetIceServersResponse';
|
|
288
|
+
}
|
|
244
289
|
/**
|
|
245
290
|
* Generated by JsPbCodeGenerator.
|
|
246
291
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -732,7 +777,8 @@ proto.v1.signaling.api.Signal.toObject = function(includeInstance, msg) {
|
|
|
732
777
|
receiverId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
733
778
|
payload: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
734
779
|
iceServers: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
735
|
-
iceTransportPolicy: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
780
|
+
iceTransportPolicy: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
781
|
+
sessionType: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
736
782
|
};
|
|
737
783
|
|
|
738
784
|
if (includeInstance) {
|
|
@@ -799,6 +845,10 @@ proto.v1.signaling.api.Signal.deserializeBinaryFromReader = function(msg, reader
|
|
|
799
845
|
var value = /** @type {string} */ (reader.readString());
|
|
800
846
|
msg.setIceTransportPolicy(value);
|
|
801
847
|
break;
|
|
848
|
+
case 8:
|
|
849
|
+
var value = /** @type {!proto.v1.signaling.api.SessionType} */ (reader.readEnum());
|
|
850
|
+
msg.setSessionType(value);
|
|
851
|
+
break;
|
|
802
852
|
default:
|
|
803
853
|
reader.skipField();
|
|
804
854
|
break;
|
|
@@ -879,6 +929,13 @@ proto.v1.signaling.api.Signal.serializeBinaryToWriter = function(message, writer
|
|
|
879
929
|
f
|
|
880
930
|
);
|
|
881
931
|
}
|
|
932
|
+
f = message.getSessionType();
|
|
933
|
+
if (f !== 0.0) {
|
|
934
|
+
writer.writeEnum(
|
|
935
|
+
8,
|
|
936
|
+
f
|
|
937
|
+
);
|
|
938
|
+
}
|
|
882
939
|
};
|
|
883
940
|
|
|
884
941
|
|
|
@@ -1046,6 +1103,24 @@ proto.v1.signaling.api.Signal.prototype.setIceTransportPolicy = function(value)
|
|
|
1046
1103
|
};
|
|
1047
1104
|
|
|
1048
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
|
+
|
|
1049
1124
|
|
|
1050
1125
|
|
|
1051
1126
|
|
|
@@ -2045,6 +2120,237 @@ proto.v1.signaling.api.GetPeersResponse.prototype.clearPeersList = function() {
|
|
|
2045
2120
|
|
|
2046
2121
|
|
|
2047
2122
|
|
|
2123
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2124
|
+
/**
|
|
2125
|
+
* Creates an object representation of this proto.
|
|
2126
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2127
|
+
* Optional fields that are not set will be set to undefined.
|
|
2128
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2129
|
+
* For the list of reserved names please see:
|
|
2130
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2131
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2132
|
+
* JSPB instance for transitional soy proto support:
|
|
2133
|
+
* http://goto/soy-param-migration
|
|
2134
|
+
* @return {!Object}
|
|
2135
|
+
*/
|
|
2136
|
+
proto.v1.signaling.api.GetIceServersRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2137
|
+
return proto.v1.signaling.api.GetIceServersRequest.toObject(opt_includeInstance, this);
|
|
2138
|
+
};
|
|
2139
|
+
|
|
2140
|
+
|
|
2141
|
+
/**
|
|
2142
|
+
* Static version of the {@see toObject} method.
|
|
2143
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2144
|
+
* the JSPB instance for transitional soy proto support:
|
|
2145
|
+
* http://goto/soy-param-migration
|
|
2146
|
+
* @param {!proto.v1.signaling.api.GetIceServersRequest} msg The msg instance to transform.
|
|
2147
|
+
* @return {!Object}
|
|
2148
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2149
|
+
*/
|
|
2150
|
+
proto.v1.signaling.api.GetIceServersRequest.toObject = function(includeInstance, msg) {
|
|
2151
|
+
var f, obj = {
|
|
2152
|
+
|
|
2153
|
+
};
|
|
2154
|
+
|
|
2155
|
+
if (includeInstance) {
|
|
2156
|
+
obj.$jspbMessageInstance = msg;
|
|
2157
|
+
}
|
|
2158
|
+
return obj;
|
|
2159
|
+
};
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
|
|
2163
|
+
/**
|
|
2164
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2165
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2166
|
+
* @return {!proto.v1.signaling.api.GetIceServersRequest}
|
|
2167
|
+
*/
|
|
2168
|
+
proto.v1.signaling.api.GetIceServersRequest.deserializeBinary = function(bytes) {
|
|
2169
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2170
|
+
var msg = new proto.v1.signaling.api.GetIceServersRequest;
|
|
2171
|
+
return proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader(msg, reader);
|
|
2172
|
+
};
|
|
2173
|
+
|
|
2174
|
+
|
|
2175
|
+
/**
|
|
2176
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2177
|
+
* given reader into the given message object.
|
|
2178
|
+
* @param {!proto.v1.signaling.api.GetIceServersRequest} msg The message object to deserialize into.
|
|
2179
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2180
|
+
* @return {!proto.v1.signaling.api.GetIceServersRequest}
|
|
2181
|
+
*/
|
|
2182
|
+
proto.v1.signaling.api.GetIceServersRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2183
|
+
while (reader.nextField()) {
|
|
2184
|
+
if (reader.isEndGroup()) {
|
|
2185
|
+
break;
|
|
2186
|
+
}
|
|
2187
|
+
var field = reader.getFieldNumber();
|
|
2188
|
+
switch (field) {
|
|
2189
|
+
default:
|
|
2190
|
+
reader.skipField();
|
|
2191
|
+
break;
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
return msg;
|
|
2195
|
+
};
|
|
2196
|
+
|
|
2197
|
+
|
|
2198
|
+
/**
|
|
2199
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2200
|
+
* @return {!Uint8Array}
|
|
2201
|
+
*/
|
|
2202
|
+
proto.v1.signaling.api.GetIceServersRequest.prototype.serializeBinary = function() {
|
|
2203
|
+
var writer = new jspb.BinaryWriter();
|
|
2204
|
+
proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter(this, writer);
|
|
2205
|
+
return writer.getResultBuffer();
|
|
2206
|
+
};
|
|
2207
|
+
|
|
2208
|
+
|
|
2209
|
+
/**
|
|
2210
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2211
|
+
* format), writing to the given BinaryWriter.
|
|
2212
|
+
* @param {!proto.v1.signaling.api.GetIceServersRequest} message
|
|
2213
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2214
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2215
|
+
*/
|
|
2216
|
+
proto.v1.signaling.api.GetIceServersRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2217
|
+
var f = undefined;
|
|
2218
|
+
};
|
|
2219
|
+
|
|
2220
|
+
|
|
2221
|
+
|
|
2222
|
+
|
|
2223
|
+
|
|
2224
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2225
|
+
/**
|
|
2226
|
+
* Creates an object representation of this proto.
|
|
2227
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2228
|
+
* Optional fields that are not set will be set to undefined.
|
|
2229
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2230
|
+
* For the list of reserved names please see:
|
|
2231
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2232
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2233
|
+
* JSPB instance for transitional soy proto support:
|
|
2234
|
+
* http://goto/soy-param-migration
|
|
2235
|
+
* @return {!Object}
|
|
2236
|
+
*/
|
|
2237
|
+
proto.v1.signaling.api.GetIceServersResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2238
|
+
return proto.v1.signaling.api.GetIceServersResponse.toObject(opt_includeInstance, this);
|
|
2239
|
+
};
|
|
2240
|
+
|
|
2241
|
+
|
|
2242
|
+
/**
|
|
2243
|
+
* Static version of the {@see toObject} method.
|
|
2244
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2245
|
+
* the JSPB instance for transitional soy proto support:
|
|
2246
|
+
* http://goto/soy-param-migration
|
|
2247
|
+
* @param {!proto.v1.signaling.api.GetIceServersResponse} msg The msg instance to transform.
|
|
2248
|
+
* @return {!Object}
|
|
2249
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2250
|
+
*/
|
|
2251
|
+
proto.v1.signaling.api.GetIceServersResponse.toObject = function(includeInstance, msg) {
|
|
2252
|
+
var f, obj = {
|
|
2253
|
+
iceServers: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
2254
|
+
};
|
|
2255
|
+
|
|
2256
|
+
if (includeInstance) {
|
|
2257
|
+
obj.$jspbMessageInstance = msg;
|
|
2258
|
+
}
|
|
2259
|
+
return obj;
|
|
2260
|
+
};
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
|
|
2264
|
+
/**
|
|
2265
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2266
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2267
|
+
* @return {!proto.v1.signaling.api.GetIceServersResponse}
|
|
2268
|
+
*/
|
|
2269
|
+
proto.v1.signaling.api.GetIceServersResponse.deserializeBinary = function(bytes) {
|
|
2270
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2271
|
+
var msg = new proto.v1.signaling.api.GetIceServersResponse;
|
|
2272
|
+
return proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader(msg, reader);
|
|
2273
|
+
};
|
|
2274
|
+
|
|
2275
|
+
|
|
2276
|
+
/**
|
|
2277
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2278
|
+
* given reader into the given message object.
|
|
2279
|
+
* @param {!proto.v1.signaling.api.GetIceServersResponse} msg The message object to deserialize into.
|
|
2280
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2281
|
+
* @return {!proto.v1.signaling.api.GetIceServersResponse}
|
|
2282
|
+
*/
|
|
2283
|
+
proto.v1.signaling.api.GetIceServersResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2284
|
+
while (reader.nextField()) {
|
|
2285
|
+
if (reader.isEndGroup()) {
|
|
2286
|
+
break;
|
|
2287
|
+
}
|
|
2288
|
+
var field = reader.getFieldNumber();
|
|
2289
|
+
switch (field) {
|
|
2290
|
+
case 1:
|
|
2291
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2292
|
+
msg.setIceServers(value);
|
|
2293
|
+
break;
|
|
2294
|
+
default:
|
|
2295
|
+
reader.skipField();
|
|
2296
|
+
break;
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
return msg;
|
|
2300
|
+
};
|
|
2301
|
+
|
|
2302
|
+
|
|
2303
|
+
/**
|
|
2304
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2305
|
+
* @return {!Uint8Array}
|
|
2306
|
+
*/
|
|
2307
|
+
proto.v1.signaling.api.GetIceServersResponse.prototype.serializeBinary = function() {
|
|
2308
|
+
var writer = new jspb.BinaryWriter();
|
|
2309
|
+
proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter(this, writer);
|
|
2310
|
+
return writer.getResultBuffer();
|
|
2311
|
+
};
|
|
2312
|
+
|
|
2313
|
+
|
|
2314
|
+
/**
|
|
2315
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2316
|
+
* format), writing to the given BinaryWriter.
|
|
2317
|
+
* @param {!proto.v1.signaling.api.GetIceServersResponse} message
|
|
2318
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2319
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2320
|
+
*/
|
|
2321
|
+
proto.v1.signaling.api.GetIceServersResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2322
|
+
var f = undefined;
|
|
2323
|
+
f = message.getIceServers();
|
|
2324
|
+
if (f.length > 0) {
|
|
2325
|
+
writer.writeString(
|
|
2326
|
+
1,
|
|
2327
|
+
f
|
|
2328
|
+
);
|
|
2329
|
+
}
|
|
2330
|
+
};
|
|
2331
|
+
|
|
2332
|
+
|
|
2333
|
+
/**
|
|
2334
|
+
* optional string ice_servers = 1;
|
|
2335
|
+
* @return {string}
|
|
2336
|
+
*/
|
|
2337
|
+
proto.v1.signaling.api.GetIceServersResponse.prototype.getIceServers = function() {
|
|
2338
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2339
|
+
};
|
|
2340
|
+
|
|
2341
|
+
|
|
2342
|
+
/**
|
|
2343
|
+
* @param {string} value
|
|
2344
|
+
* @return {!proto.v1.signaling.api.GetIceServersResponse} returns this
|
|
2345
|
+
*/
|
|
2346
|
+
proto.v1.signaling.api.GetIceServersResponse.prototype.setIceServers = function(value) {
|
|
2347
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2348
|
+
};
|
|
2349
|
+
|
|
2350
|
+
|
|
2351
|
+
|
|
2352
|
+
|
|
2353
|
+
|
|
2048
2354
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2049
2355
|
/**
|
|
2050
2356
|
* Creates an object representation of this proto.
|
|
@@ -2676,4 +2982,13 @@ proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.hasSignal = functio
|
|
|
2676
2982
|
};
|
|
2677
2983
|
|
|
2678
2984
|
|
|
2985
|
+
/**
|
|
2986
|
+
* @enum {number}
|
|
2987
|
+
*/
|
|
2988
|
+
proto.v1.signaling.api.SessionType = {
|
|
2989
|
+
UNKNOWN: 0,
|
|
2990
|
+
TELEOP: 1,
|
|
2991
|
+
PORT_FORWARD: 2
|
|
2992
|
+
};
|
|
2993
|
+
|
|
2679
2994
|
goog.object.extend(exports, proto.v1.signaling.api);
|
|
@@ -9,6 +9,7 @@ import { IRtcSendConfiguration } from "./models/IRtcSendConfiguration";
|
|
|
9
9
|
import { IRtcSessionMetricsMessageCounts } from "./models/IRtcSessionMetricsMessageCounts";
|
|
10
10
|
import { IRtcStreamMessage } from "./models/IRtcStreamMessage";
|
|
11
11
|
import { IStreamControl } from "./models/IStreamControl";
|
|
12
|
+
import { RtcConnection } from "./RtcConnection";
|
|
12
13
|
/**
|
|
13
14
|
* RtcClient to be used by browsers.
|
|
14
15
|
*/
|
|
@@ -16,10 +17,14 @@ export declare class RtcClient {
|
|
|
16
17
|
private config;
|
|
17
18
|
private readonly grpcCallDeadline;
|
|
18
19
|
private readonly refreshIntervalDelayMs;
|
|
20
|
+
private readonly iceServersTtl;
|
|
19
21
|
private localPeer?;
|
|
22
|
+
private iceServers?;
|
|
23
|
+
private iceServersLastUpdate?;
|
|
20
24
|
private receiveSignalStream?;
|
|
21
25
|
private refreshInterval;
|
|
22
26
|
private connections;
|
|
27
|
+
private localConnections;
|
|
23
28
|
private isConnectionInitiator;
|
|
24
29
|
private isOutgoingConnection;
|
|
25
30
|
private peerDataChannelListeners;
|
|
@@ -32,6 +37,8 @@ export declare class RtcClient {
|
|
|
32
37
|
* Returns the id of the session, if one is created.
|
|
33
38
|
*/
|
|
34
39
|
connect(remotePeerId: Uuid, config?: IRtcConnectConfiguration): Promise<Uuid | undefined>;
|
|
40
|
+
connectLan(agentEndpoint: string): Promise<Uuid | false>;
|
|
41
|
+
getConnections(): RtcConnection[];
|
|
35
42
|
createCustomDataChannel(remotePeerId: Uuid, channelName: string, init: RTCDataChannelInit, isBinary: boolean, listener: (peerId: Uuid, channel: RTCDataChannel) => void): () => void;
|
|
36
43
|
private onCustomDataChannel;
|
|
37
44
|
getConnectionStatus(remotePeerId: Uuid): RtcConnectionStatus;
|
|
@@ -41,6 +48,7 @@ export declare class RtcClient {
|
|
|
41
48
|
getPing(remotePeerId: Uuid): number | undefined;
|
|
42
49
|
getLastMessageTimestamp(remotePeerId: Uuid): Timestamp | undefined;
|
|
43
50
|
getSessionMetricsMessageCounts(remotePeerId: Uuid): IRtcSessionMetricsMessageCounts | undefined;
|
|
51
|
+
isReady(): boolean;
|
|
44
52
|
shutdown(): Promise<void>;
|
|
45
53
|
private createPeer;
|
|
46
54
|
private createReceiveSignalStream;
|
|
@@ -49,6 +57,7 @@ export declare class RtcClient {
|
|
|
49
57
|
private getActiveConnection;
|
|
50
58
|
private update;
|
|
51
59
|
private reset;
|
|
60
|
+
private updateIceServers;
|
|
52
61
|
private setupHandlers;
|
|
53
62
|
private getMetadata;
|
|
54
63
|
}
|
|
@@ -49,20 +49,22 @@ export declare class RtcConnection {
|
|
|
49
49
|
* and all data channels exist and are open
|
|
50
50
|
*/
|
|
51
51
|
isReady(): boolean;
|
|
52
|
-
setSessionId(sessionId: Uuid): void;
|
|
53
52
|
close(): Promise<void>;
|
|
54
53
|
getPing(): number | undefined;
|
|
55
54
|
getLastMessageTimestamp(): Timestamp | undefined;
|
|
56
55
|
getSessionCreatedTimestamp(): Timestamp | undefined;
|
|
57
56
|
setSessionCreatedTimestamp(sessionCreatedTimestamp: Timestamp): void;
|
|
58
57
|
getSessionId(): Uuid | undefined;
|
|
59
|
-
|
|
58
|
+
setSessionId(sessionId: Uuid): void;
|
|
59
|
+
getRemotePeerId(): Uuid | undefined;
|
|
60
60
|
getRemoteDeviceId(): Uuid | undefined;
|
|
61
61
|
setRemoteDeviceId(deviceId: Uuid | undefined): void;
|
|
62
62
|
getSessionMetricsMessageCounts(): IRtcSessionMetricsMessageCounts | undefined;
|
|
63
63
|
getConnectionStatsInfo(): Promise<IRtcConnectionStatsInfo | undefined>;
|
|
64
64
|
private initializeChannels;
|
|
65
65
|
getOffer(): Promise<Signal | undefined>;
|
|
66
|
+
getLanOffer(): Promise<RTCSessionDescription | undefined>;
|
|
67
|
+
handleLanAnswer(answerSdp: RTCSessionDescription): Promise<void>;
|
|
66
68
|
private getChannelFromLabel;
|
|
67
69
|
private sendOnChannel;
|
|
68
70
|
private channelNotRecognized;
|
|
@@ -2,12 +2,17 @@ import { Timestamp } from "../../model/Timestamp";
|
|
|
2
2
|
import { Uuid } from "../../model/Uuid";
|
|
3
3
|
import { SignalingPromiseClient } from "../../protos/api/signaling/v1/signaling_grpc_web_pb";
|
|
4
4
|
import { IRtcStreamMessage } from "./IRtcStreamMessage";
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
iceServers: RTCIceServer[];
|
|
8
|
-
getToken: () => Promise<string>;
|
|
5
|
+
export declare type IRtcClientConfiguration = {
|
|
6
|
+
lanOnlyMode: true;
|
|
9
7
|
receive: (peerId: Uuid, message: IRtcStreamMessage) => void;
|
|
10
8
|
onStreamsInfoUpdate?: (peerId: Uuid, timestamp: Timestamp) => void;
|
|
11
9
|
alternateRTCPeerConnection?: typeof RTCPeerConnection;
|
|
10
|
+
} | {
|
|
11
|
+
lanOnlyMode?: false;
|
|
12
|
+
receive: (peerId: Uuid, message: IRtcStreamMessage) => void;
|
|
13
|
+
getToken: () => Promise<string>;
|
|
14
|
+
signalingClient: SignalingPromiseClient;
|
|
15
|
+
onStreamsInfoUpdate?: (peerId: Uuid, timestamp: Timestamp) => void;
|
|
16
|
+
alternateRTCPeerConnection?: typeof RTCPeerConnection;
|
|
12
17
|
track?: (event: string, properties?: object) => void;
|
|
13
|
-
}
|
|
18
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Timestamp } from "../../model/Timestamp";
|
|
2
|
+
import { Uuid } from "../../model/Uuid";
|
|
3
|
+
import { IRtcStreamMessage } from "./IRtcStreamMessage";
|
|
4
|
+
export interface IRtcConnectionBaseConfiguration {
|
|
5
|
+
isOffer: boolean;
|
|
6
|
+
isLan: boolean;
|
|
7
|
+
localPeerId: Uuid;
|
|
8
|
+
remotePeerId: Uuid;
|
|
9
|
+
localUserId?: Uuid;
|
|
10
|
+
remoteDeviceId?: Uuid;
|
|
11
|
+
receive: (peerId: Uuid, message: IRtcStreamMessage) => void;
|
|
12
|
+
onStreamsInfoUpdate?: (peerId: Uuid, timestamp: Timestamp) => void;
|
|
13
|
+
track?: (event: string, properties?: object) => void;
|
|
14
|
+
}
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
localPeer: Peer;
|
|
8
|
-
remotePeerId: Uuid;
|
|
9
|
-
remoteDeviceId?: Uuid;
|
|
10
|
-
isOffer: boolean;
|
|
11
|
-
sessionCreatedTimestamp?: Timestamp;
|
|
12
|
-
receive: (peerId: Uuid, message: IRtcStreamMessage) => void;
|
|
13
|
-
onStreamsInfoUpdate?: (peerId: Uuid, timestamp: Timestamp) => void;
|
|
14
|
-
track?: (event: string, properties?: object) => void;
|
|
15
|
-
}
|
|
1
|
+
import { IRtcConnectionBaseConfiguration } from "./IRtcConnectionBaseConfiguration";
|
|
2
|
+
import { IRtcConnectionRemoteConfiguration } from "./IRtcConnectionRemoteConfiguration";
|
|
3
|
+
export declare type IRtcConnectionConfiguration = {
|
|
4
|
+
baseConfig: IRtcConnectionBaseConfiguration;
|
|
5
|
+
remoteConfig?: IRtcConnectionRemoteConfiguration;
|
|
6
|
+
};
|
|
@@ -3,9 +3,14 @@ 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";
|
|
7
|
+
import { IPoint } from "../../model/IPoint";
|
|
8
|
+
import { IPoseWithCovariance } from "../../model/IPoseWithCovariance";
|
|
6
9
|
import { ITransform } from "../../model/ITransform";
|
|
7
10
|
import { ITwist } from "../../model/ITwist";
|
|
8
11
|
import { Timestamp } from "../../model/Timestamp";
|
|
12
|
+
import { IRtcAgentInfo } from "./IRtcAgentInfo";
|
|
13
|
+
import { IRtcPointCloud } from "./IRtcPointCloud";
|
|
9
14
|
import { IRtcStreamsInfo } from "./IRtcStreamsInfo";
|
|
10
15
|
import { IStreamControl } from "./IStreamControl";
|
|
11
16
|
export interface IRtcStreamPayload {
|
|
@@ -13,6 +18,7 @@ export interface IRtcStreamPayload {
|
|
|
13
18
|
pong?: Timestamp;
|
|
14
19
|
streamControl?: IStreamControl;
|
|
15
20
|
streamsInfo?: IRtcStreamsInfo;
|
|
21
|
+
agentInfo?: IRtcAgentInfo;
|
|
16
22
|
numeric?: {
|
|
17
23
|
value: number;
|
|
18
24
|
};
|
|
@@ -30,4 +36,8 @@ export interface IRtcStreamPayload {
|
|
|
30
36
|
h264VideoFrame?: IH264VideoFrame;
|
|
31
37
|
audioChunk?: IAudioChunk;
|
|
32
38
|
jointState?: IJointState;
|
|
39
|
+
poseWithCovariance?: IPoseWithCovariance;
|
|
40
|
+
pointCloud?: IRtcPointCloud;
|
|
41
|
+
point?: IPoint;
|
|
42
|
+
markerArray?: IMarker3DArray;
|
|
33
43
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const rtcPipelineType = "rtc";
|
|
2
2
|
export declare const telemetryPipelineType = "telemetry";
|
|
3
|
-
export declare type IStreamControl = IRtcStreamControl | ITelemetryStreamControl | IDegradeVideoStreamControl | IAudioStreamControl;
|
|
3
|
+
export declare type IStreamControl = IRtcStreamControl | ITelemetryStreamControl | IDegradeVideoStreamControl | IAudioStreamControl | ISetLowBandwidthMode;
|
|
4
4
|
export interface IStreamControlBase {
|
|
5
5
|
streamName: string;
|
|
6
6
|
}
|
|
@@ -18,3 +18,6 @@ export interface IDegradeVideoStreamControl extends IStreamControlBase {
|
|
|
18
18
|
export interface IAudioStreamControl extends IStreamControlBase {
|
|
19
19
|
setAudioFormat: string;
|
|
20
20
|
}
|
|
21
|
+
export interface ISetLowBandwidthMode extends IStreamControlBase {
|
|
22
|
+
setLowBandwidthMode: boolean;
|
|
23
|
+
}
|
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
2
|
+
"name": "@formant/realtime-sdk",
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/realtime-sdk/src/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"clean": "rm -rf dist",
|
|
12
|
+
"compile": "tsc",
|
|
13
|
+
"build": "yarn make-protos && env $(cat src/config/production.env) webpack",
|
|
14
|
+
"postbuild": "tsc --emitDeclarationOnly --declaration --declarationDir ./dist --skipLibCheck && tsc-alias",
|
|
15
|
+
"prepublishOnly": "yarn clean && yarn build",
|
|
16
|
+
"make-protos": "cd ../../../ && make protos && cd -"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"google-protobuf": "3.17.3",
|
|
20
|
+
"grpc-web": "1.2.1"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"circular-dependency-plugin": "^5.2.2",
|
|
24
|
+
"copy-webpack-plugin": "^6.4.1",
|
|
25
|
+
"file-loader": "^5.1.0",
|
|
26
|
+
"fork-ts-checker-webpack-plugin": "^4.1.0",
|
|
27
|
+
"terser-webpack-plugin": "^2.3.5",
|
|
28
|
+
"ts-loader": "^6.2.1",
|
|
29
|
+
"tsc-alias": "^1.4.1",
|
|
30
|
+
"webpack": "^4.42.0",
|
|
31
|
+
"webpack-bundle-analyzer": "^3.6.1"
|
|
32
|
+
},
|
|
33
|
+
"author": "",
|
|
34
|
+
"description": ""
|
|
35
35
|
}
|
package/dist/1.index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this.webpackJsonpTeleopClient=this.webpackJsonpTeleopClient||[]).push([[1],{224:function(n,t,e){"use strict";e.r(t),e.d(t,"LogClient",(function(){return c}));var o=e(35),i=function(n,t,e,o){return new(e||(e=Promise))((function(i,c){function s(n){try{u(o.next(n))}catch(n){c(n)}}function r(n){try{u(o.throw(n))}catch(n){c(n)}}function u(n){var t;n.done?i(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(s,r)}u((o=o.apply(n,t||[])).next())}))};class c extends o.a{log(n){return i(this,void 0,void 0,(function*(){yield this.fetch("logs",{method:"POST",body:JSON.stringify({logs:n}),allowUnsafeRetries:!0})}))}}}}]);
|
package/dist/model/Role.d.ts
DELETED
package/dist/model/roles.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const roles: readonly ["viewer", "operator", "administrator"];
|