@formant/realtime-sdk 0.0.20 → 1.1.0

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/LICENSE.txt +19 -0
  2. package/README.md +48 -0
  3. package/dist/client/AuthClient.d.ts +1 -1
  4. package/dist/{common → client}/Credentials.d.ts +1 -1
  5. package/dist/common/BaseClient.d.ts +4 -3
  6. package/dist/common/LogReporter.d.ts +1 -3
  7. package/dist/common/LruCache.d.ts +1 -1
  8. package/dist/common/PromiseLruCache.d.ts +1 -1
  9. package/dist/common/ResponseError.d.ts +3 -2
  10. package/dist/common/StatsManager.d.ts +1 -1
  11. package/dist/common/StatsReporter.d.ts +7 -6
  12. package/dist/common/config/index.d.ts +1 -1
  13. package/dist/common/defined.d.ts +3 -0
  14. package/dist/common/delay.d.ts +1 -1
  15. package/dist/common/redact.d.ts +1 -1
  16. package/dist/common/setPromiseInterval.d.ts +1 -1
  17. package/dist/index.js +1 -1
  18. package/dist/model/AnnotationAreaType.d.ts +1 -1
  19. package/dist/model/CognitoRegion.d.ts +1 -1
  20. package/dist/model/Feature.d.ts +2 -2
  21. package/dist/model/HealthStatus.d.ts +1 -1
  22. package/dist/model/HexRgbColor.d.ts +1 -1
  23. package/dist/model/IDictionary.d.ts +3 -0
  24. package/dist/model/IFilter.d.ts +1 -1
  25. package/dist/model/IPoint.d.ts +1 -1
  26. package/dist/model/IRtcSession.d.ts +3 -1
  27. package/dist/model/ITags.d.ts +2 -3
  28. package/dist/model/IUser.d.ts +11 -4
  29. package/dist/model/IUserScope.d.ts +16 -0
  30. package/dist/model/IsoDate.d.ts +1 -1
  31. package/dist/model/LanguageType.d.ts +2 -0
  32. package/dist/model/LogLevel.d.ts +1 -1
  33. package/dist/model/Marker3DAction.d.ts +1 -1
  34. package/dist/model/Marker3DType.d.ts +1 -1
  35. package/dist/model/OrganizationPlan.d.ts +1 -1
  36. package/dist/model/RequireKeys.d.ts +3 -0
  37. package/dist/model/RtcConnectionStatus.d.ts +1 -1
  38. package/dist/model/RtcIceServerProtocol.d.ts +1 -1
  39. package/dist/model/RtcIceTransportPolicy.d.ts +1 -1
  40. package/dist/model/RtcSessionType.d.ts +2 -0
  41. package/dist/model/RtcStreamType.d.ts +2 -2
  42. package/dist/model/SmsOptInStatus.d.ts +2 -0
  43. package/dist/model/StreamType.d.ts +1 -1
  44. package/dist/model/Timeout.d.ts +1 -1
  45. package/dist/model/Timestamp.d.ts +1 -1
  46. package/dist/model/Uuid.d.ts +1 -1
  47. package/dist/model/VideoMimeType.d.ts +1 -1
  48. package/dist/model/cognitoRegions.d.ts +1 -1
  49. package/dist/model/healthStatuses.d.ts +1 -1
  50. package/dist/model/languageTypes.d.ts +1 -0
  51. package/dist/model/rtcSessionTypes.d.ts +1 -0
  52. package/dist/model/rtcStreamTypes.d.ts +2 -1
  53. package/dist/model/smsOptInStatuses.d.ts +1 -0
  54. package/dist/protos/api/signaling/v1/signaling.proto +17 -0
  55. package/dist/protos/api/signaling/v1/signaling_grpc_web_pb.d.ts +59 -47
  56. package/dist/protos/api/signaling/v1/signaling_grpc_web_pb.js +88 -175
  57. package/dist/protos/api/signaling/v1/signaling_pb.d.ts +69 -0
  58. package/dist/protos/api/signaling/v1/signaling_pb.js +586 -2
  59. package/dist/realtime-sdk/src/index.d.ts +10 -10
  60. package/dist/rtc-client/IHasPeerConnection.d.ts +3 -0
  61. package/dist/rtc-client/IHasRemoteDeviceId.d.ts +4 -0
  62. package/dist/rtc-client/RtcClient.d.ts +3 -1
  63. package/dist/rtc-client/RtcConnection.d.ts +18 -14
  64. package/dist/rtc-client/RtcConnectionV1.d.ts +2 -1
  65. package/dist/rtc-client/RtcSessionMetrics.d.ts +5 -4
  66. package/dist/rtc-client/RtcSessionMetricsV1.d.ts +8 -6
  67. package/dist/rtc-client/gatherPingMetrics.d.ts +2 -2
  68. package/dist/rtc-client/models/IIceMode.d.ts +1 -1
  69. package/dist/rtc-client/models/IRtcClientConfiguration.d.ts +1 -1
  70. package/dist/rtc-client/models/IRtcConnectionConfiguration.d.ts +1 -1
  71. package/dist/rtc-client/models/IRtcStreamPayload.d.ts +2 -0
  72. package/dist/rtc-client/models/IStreamControl.d.ts +1 -1
  73. package/dist/rtc-client/models/RtcChannelLabel.d.ts +1 -1
  74. package/dist/rtc-client/models/RtcCommunicationType.d.ts +1 -1
  75. package/dist/rtc-client/utils/assertHasPeerConnection.d.ts +1 -0
  76. package/dist/rtc-client/utils/encodeStreamId.d.ts +1 -1
  77. package/dist/rtc-client/utils/partition.d.ts +1 -0
  78. package/dist/ui/utils/browser.d.ts +1 -1
  79. package/package.json +6 -7
  80. package/dist/model/IAccessScope.d.ts +0 -5
  81. package/dist/protos/api/signaling/v1/BUILD.bazel +0 -25
  82. package/dist/protos/api/signaling/v1/signaling_grpc_pb.js +0 -276
  83. package/dist/version.txt +0 -1
@@ -4,7 +4,11 @@
4
4
  * @public
5
5
  */
6
6
 
7
- // GENERATED CODE -- DO NOT EDIT!
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.4.1
10
+ // protoc v3.19.1
11
+ // source: api/signaling/v1/signaling.proto
8
12
 
9
13
 
10
14
  /* eslint-disable */
@@ -25,7 +29,7 @@ proto.v1.signaling.api = require('./signaling_pb.js');
25
29
  /**
26
30
  * @param {string} hostname
27
31
  * @param {?Object} credentials
28
- * @param {?Object} options
32
+ * @param {?grpc.web.ClientOptions} options
29
33
  * @constructor
30
34
  * @struct
31
35
  * @final
@@ -33,7 +37,7 @@ proto.v1.signaling.api = require('./signaling_pb.js');
33
37
  proto.v1.signaling.api.SignalingClient =
34
38
  function(hostname, credentials, options) {
35
39
  if (!options) options = {};
36
- options['format'] = 'text';
40
+ options.format = 'text';
37
41
 
38
42
  /**
39
43
  * @private @const {!grpc.web.GrpcWebClientBase} The client
@@ -43,7 +47,7 @@ proto.v1.signaling.api.SignalingClient =
43
47
  /**
44
48
  * @private @const {string} The hostname
45
49
  */
46
- this.hostname_ = hostname;
50
+ this.hostname_ = hostname.replace(/\/+$/, '');
47
51
 
48
52
  };
49
53
 
@@ -51,7 +55,7 @@ proto.v1.signaling.api.SignalingClient =
51
55
  /**
52
56
  * @param {string} hostname
53
57
  * @param {?Object} credentials
54
- * @param {?Object} options
58
+ * @param {?grpc.web.ClientOptions} options
55
59
  * @constructor
56
60
  * @struct
57
61
  * @final
@@ -59,7 +63,7 @@ proto.v1.signaling.api.SignalingClient =
59
63
  proto.v1.signaling.api.SignalingPromiseClient =
60
64
  function(hostname, credentials, options) {
61
65
  if (!options) options = {};
62
- options['format'] = 'text';
66
+ options.format = 'text';
63
67
 
64
68
  /**
65
69
  * @private @const {!grpc.web.GrpcWebClientBase} The client
@@ -69,7 +73,7 @@ proto.v1.signaling.api.SignalingPromiseClient =
69
73
  /**
70
74
  * @private @const {string} The hostname
71
75
  */
72
- this.hostname_ = hostname;
76
+ this.hostname_ = hostname.replace(/\/+$/, '');
73
77
 
74
78
  };
75
79
 
@@ -96,31 +100,12 @@ const methodDescriptor_Signaling_GetHealth = new grpc.web.MethodDescriptor(
96
100
  );
97
101
 
98
102
 
99
- /**
100
- * @const
101
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
102
- * !proto.v1.signaling.api.GetHealthRequest,
103
- * !proto.v1.signaling.api.GetHealthResponse>}
104
- */
105
- const methodInfo_Signaling_GetHealth = new grpc.web.AbstractClientBase.MethodInfo(
106
- proto.v1.signaling.api.GetHealthResponse,
107
- /**
108
- * @param {!proto.v1.signaling.api.GetHealthRequest} request
109
- * @return {!Uint8Array}
110
- */
111
- function(request) {
112
- return request.serializeBinary();
113
- },
114
- proto.v1.signaling.api.GetHealthResponse.deserializeBinary
115
- );
116
-
117
-
118
103
  /**
119
104
  * @param {!proto.v1.signaling.api.GetHealthRequest} request The
120
105
  * request proto
121
106
  * @param {?Object<string, string>} metadata User defined
122
107
  * call metadata
123
- * @param {function(?grpc.web.Error, ?proto.v1.signaling.api.GetHealthResponse)}
108
+ * @param {function(?grpc.web.RpcError, ?proto.v1.signaling.api.GetHealthResponse)}
124
109
  * callback The callback function(error, response)
125
110
  * @return {!grpc.web.ClientReadableStream<!proto.v1.signaling.api.GetHealthResponse>|undefined}
126
111
  * The XHR Node Readable Stream
@@ -139,7 +124,7 @@ proto.v1.signaling.api.SignalingClient.prototype.getHealth =
139
124
  /**
140
125
  * @param {!proto.v1.signaling.api.GetHealthRequest} request The
141
126
  * request proto
142
- * @param {?Object<string, string>} metadata User defined
127
+ * @param {?Object<string, string>=} metadata User defined
143
128
  * call metadata
144
129
  * @return {!Promise<!proto.v1.signaling.api.GetHealthResponse>}
145
130
  * Promise that resolves to the response
@@ -176,31 +161,12 @@ const methodDescriptor_Signaling_CreatePeer = new grpc.web.MethodDescriptor(
176
161
  );
177
162
 
178
163
 
179
- /**
180
- * @const
181
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
182
- * !proto.v1.signaling.api.CreatePeerRequest,
183
- * !proto.v1.signaling.api.CreatePeerResponse>}
184
- */
185
- const methodInfo_Signaling_CreatePeer = new grpc.web.AbstractClientBase.MethodInfo(
186
- proto.v1.signaling.api.CreatePeerResponse,
187
- /**
188
- * @param {!proto.v1.signaling.api.CreatePeerRequest} request
189
- * @return {!Uint8Array}
190
- */
191
- function(request) {
192
- return request.serializeBinary();
193
- },
194
- proto.v1.signaling.api.CreatePeerResponse.deserializeBinary
195
- );
196
-
197
-
198
164
  /**
199
165
  * @param {!proto.v1.signaling.api.CreatePeerRequest} request The
200
166
  * request proto
201
167
  * @param {?Object<string, string>} metadata User defined
202
168
  * call metadata
203
- * @param {function(?grpc.web.Error, ?proto.v1.signaling.api.CreatePeerResponse)}
169
+ * @param {function(?grpc.web.RpcError, ?proto.v1.signaling.api.CreatePeerResponse)}
204
170
  * callback The callback function(error, response)
205
171
  * @return {!grpc.web.ClientReadableStream<!proto.v1.signaling.api.CreatePeerResponse>|undefined}
206
172
  * The XHR Node Readable Stream
@@ -219,7 +185,7 @@ proto.v1.signaling.api.SignalingClient.prototype.createPeer =
219
185
  /**
220
186
  * @param {!proto.v1.signaling.api.CreatePeerRequest} request The
221
187
  * request proto
222
- * @param {?Object<string, string>} metadata User defined
188
+ * @param {?Object<string, string>=} metadata User defined
223
189
  * call metadata
224
190
  * @return {!Promise<!proto.v1.signaling.api.CreatePeerResponse>}
225
191
  * Promise that resolves to the response
@@ -256,31 +222,12 @@ const methodDescriptor_Signaling_DeletePeer = new grpc.web.MethodDescriptor(
256
222
  );
257
223
 
258
224
 
259
- /**
260
- * @const
261
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
262
- * !proto.v1.signaling.api.DeletePeerRequest,
263
- * !proto.v1.signaling.api.DeletePeerResponse>}
264
- */
265
- const methodInfo_Signaling_DeletePeer = new grpc.web.AbstractClientBase.MethodInfo(
266
- proto.v1.signaling.api.DeletePeerResponse,
267
- /**
268
- * @param {!proto.v1.signaling.api.DeletePeerRequest} request
269
- * @return {!Uint8Array}
270
- */
271
- function(request) {
272
- return request.serializeBinary();
273
- },
274
- proto.v1.signaling.api.DeletePeerResponse.deserializeBinary
275
- );
276
-
277
-
278
225
  /**
279
226
  * @param {!proto.v1.signaling.api.DeletePeerRequest} request The
280
227
  * request proto
281
228
  * @param {?Object<string, string>} metadata User defined
282
229
  * call metadata
283
- * @param {function(?grpc.web.Error, ?proto.v1.signaling.api.DeletePeerResponse)}
230
+ * @param {function(?grpc.web.RpcError, ?proto.v1.signaling.api.DeletePeerResponse)}
284
231
  * callback The callback function(error, response)
285
232
  * @return {!grpc.web.ClientReadableStream<!proto.v1.signaling.api.DeletePeerResponse>|undefined}
286
233
  * The XHR Node Readable Stream
@@ -299,7 +246,7 @@ proto.v1.signaling.api.SignalingClient.prototype.deletePeer =
299
246
  /**
300
247
  * @param {!proto.v1.signaling.api.DeletePeerRequest} request The
301
248
  * request proto
302
- * @param {?Object<string, string>} metadata User defined
249
+ * @param {?Object<string, string>=} metadata User defined
303
250
  * call metadata
304
251
  * @return {!Promise<!proto.v1.signaling.api.DeletePeerResponse>}
305
252
  * Promise that resolves to the response
@@ -336,31 +283,12 @@ const methodDescriptor_Signaling_RefreshPeer = new grpc.web.MethodDescriptor(
336
283
  );
337
284
 
338
285
 
339
- /**
340
- * @const
341
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
342
- * !proto.v1.signaling.api.RefreshPeerRequest,
343
- * !proto.v1.signaling.api.RefreshPeerResponse>}
344
- */
345
- const methodInfo_Signaling_RefreshPeer = new grpc.web.AbstractClientBase.MethodInfo(
346
- proto.v1.signaling.api.RefreshPeerResponse,
347
- /**
348
- * @param {!proto.v1.signaling.api.RefreshPeerRequest} request
349
- * @return {!Uint8Array}
350
- */
351
- function(request) {
352
- return request.serializeBinary();
353
- },
354
- proto.v1.signaling.api.RefreshPeerResponse.deserializeBinary
355
- );
356
-
357
-
358
286
  /**
359
287
  * @param {!proto.v1.signaling.api.RefreshPeerRequest} request The
360
288
  * request proto
361
289
  * @param {?Object<string, string>} metadata User defined
362
290
  * call metadata
363
- * @param {function(?grpc.web.Error, ?proto.v1.signaling.api.RefreshPeerResponse)}
291
+ * @param {function(?grpc.web.RpcError, ?proto.v1.signaling.api.RefreshPeerResponse)}
364
292
  * callback The callback function(error, response)
365
293
  * @return {!grpc.web.ClientReadableStream<!proto.v1.signaling.api.RefreshPeerResponse>|undefined}
366
294
  * The XHR Node Readable Stream
@@ -379,7 +307,7 @@ proto.v1.signaling.api.SignalingClient.prototype.refreshPeer =
379
307
  /**
380
308
  * @param {!proto.v1.signaling.api.RefreshPeerRequest} request The
381
309
  * request proto
382
- * @param {?Object<string, string>} metadata User defined
310
+ * @param {?Object<string, string>=} metadata User defined
383
311
  * call metadata
384
312
  * @return {!Promise<!proto.v1.signaling.api.RefreshPeerResponse>}
385
313
  * Promise that resolves to the response
@@ -416,31 +344,12 @@ const methodDescriptor_Signaling_GetPeers = new grpc.web.MethodDescriptor(
416
344
  );
417
345
 
418
346
 
419
- /**
420
- * @const
421
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
422
- * !proto.v1.signaling.api.GetPeersRequest,
423
- * !proto.v1.signaling.api.GetPeersResponse>}
424
- */
425
- const methodInfo_Signaling_GetPeers = new grpc.web.AbstractClientBase.MethodInfo(
426
- proto.v1.signaling.api.GetPeersResponse,
427
- /**
428
- * @param {!proto.v1.signaling.api.GetPeersRequest} request
429
- * @return {!Uint8Array}
430
- */
431
- function(request) {
432
- return request.serializeBinary();
433
- },
434
- proto.v1.signaling.api.GetPeersResponse.deserializeBinary
435
- );
436
-
437
-
438
347
  /**
439
348
  * @param {!proto.v1.signaling.api.GetPeersRequest} request The
440
349
  * request proto
441
350
  * @param {?Object<string, string>} metadata User defined
442
351
  * call metadata
443
- * @param {function(?grpc.web.Error, ?proto.v1.signaling.api.GetPeersResponse)}
352
+ * @param {function(?grpc.web.RpcError, ?proto.v1.signaling.api.GetPeersResponse)}
444
353
  * callback The callback function(error, response)
445
354
  * @return {!grpc.web.ClientReadableStream<!proto.v1.signaling.api.GetPeersResponse>|undefined}
446
355
  * The XHR Node Readable Stream
@@ -459,7 +368,7 @@ proto.v1.signaling.api.SignalingClient.prototype.getPeers =
459
368
  /**
460
369
  * @param {!proto.v1.signaling.api.GetPeersRequest} request The
461
370
  * request proto
462
- * @param {?Object<string, string>} metadata User defined
371
+ * @param {?Object<string, string>=} metadata User defined
463
372
  * call metadata
464
373
  * @return {!Promise<!proto.v1.signaling.api.GetPeersResponse>}
465
374
  * Promise that resolves to the response
@@ -496,31 +405,12 @@ const methodDescriptor_Signaling_GetIceServers = new grpc.web.MethodDescriptor(
496
405
  );
497
406
 
498
407
 
499
- /**
500
- * @const
501
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
502
- * !proto.v1.signaling.api.GetIceServersRequest,
503
- * !proto.v1.signaling.api.GetIceServersResponse>}
504
- */
505
- const methodInfo_Signaling_GetIceServers = new grpc.web.AbstractClientBase.MethodInfo(
506
- proto.v1.signaling.api.GetIceServersResponse,
507
- /**
508
- * @param {!proto.v1.signaling.api.GetIceServersRequest} request
509
- * @return {!Uint8Array}
510
- */
511
- function(request) {
512
- return request.serializeBinary();
513
- },
514
- proto.v1.signaling.api.GetIceServersResponse.deserializeBinary
515
- );
516
-
517
-
518
408
  /**
519
409
  * @param {!proto.v1.signaling.api.GetIceServersRequest} request The
520
410
  * request proto
521
411
  * @param {?Object<string, string>} metadata User defined
522
412
  * call metadata
523
- * @param {function(?grpc.web.Error, ?proto.v1.signaling.api.GetIceServersResponse)}
413
+ * @param {function(?grpc.web.RpcError, ?proto.v1.signaling.api.GetIceServersResponse)}
524
414
  * callback The callback function(error, response)
525
415
  * @return {!grpc.web.ClientReadableStream<!proto.v1.signaling.api.GetIceServersResponse>|undefined}
526
416
  * The XHR Node Readable Stream
@@ -539,7 +429,7 @@ proto.v1.signaling.api.SignalingClient.prototype.getIceServers =
539
429
  /**
540
430
  * @param {!proto.v1.signaling.api.GetIceServersRequest} request The
541
431
  * request proto
542
- * @param {?Object<string, string>} metadata User defined
432
+ * @param {?Object<string, string>=} metadata User defined
543
433
  * call metadata
544
434
  * @return {!Promise<!proto.v1.signaling.api.GetIceServersResponse>}
545
435
  * Promise that resolves to the response
@@ -576,31 +466,12 @@ const methodDescriptor_Signaling_SendSignal = new grpc.web.MethodDescriptor(
576
466
  );
577
467
 
578
468
 
579
- /**
580
- * @const
581
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
582
- * !proto.v1.signaling.api.SendSignalRequest,
583
- * !proto.v1.signaling.api.SendSignalResponse>}
584
- */
585
- const methodInfo_Signaling_SendSignal = new grpc.web.AbstractClientBase.MethodInfo(
586
- proto.v1.signaling.api.SendSignalResponse,
587
- /**
588
- * @param {!proto.v1.signaling.api.SendSignalRequest} request
589
- * @return {!Uint8Array}
590
- */
591
- function(request) {
592
- return request.serializeBinary();
593
- },
594
- proto.v1.signaling.api.SendSignalResponse.deserializeBinary
595
- );
596
-
597
-
598
469
  /**
599
470
  * @param {!proto.v1.signaling.api.SendSignalRequest} request The
600
471
  * request proto
601
472
  * @param {?Object<string, string>} metadata User defined
602
473
  * call metadata
603
- * @param {function(?grpc.web.Error, ?proto.v1.signaling.api.SendSignalResponse)}
474
+ * @param {function(?grpc.web.RpcError, ?proto.v1.signaling.api.SendSignalResponse)}
604
475
  * callback The callback function(error, response)
605
476
  * @return {!grpc.web.ClientReadableStream<!proto.v1.signaling.api.SendSignalResponse>|undefined}
606
477
  * The XHR Node Readable Stream
@@ -619,7 +490,7 @@ proto.v1.signaling.api.SignalingClient.prototype.sendSignal =
619
490
  /**
620
491
  * @param {!proto.v1.signaling.api.SendSignalRequest} request The
621
492
  * request proto
622
- * @param {?Object<string, string>} metadata User defined
493
+ * @param {?Object<string, string>=} metadata User defined
623
494
  * call metadata
624
495
  * @return {!Promise<!proto.v1.signaling.api.SendSignalResponse>}
625
496
  * Promise that resolves to the response
@@ -656,28 +527,9 @@ const methodDescriptor_Signaling_ReceiveSignalStream = new grpc.web.MethodDescri
656
527
  );
657
528
 
658
529
 
659
- /**
660
- * @const
661
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
662
- * !proto.v1.signaling.api.ReceiveSignalStreamRequest,
663
- * !proto.v1.signaling.api.ReceiveSignalStreamResponse>}
664
- */
665
- const methodInfo_Signaling_ReceiveSignalStream = new grpc.web.AbstractClientBase.MethodInfo(
666
- proto.v1.signaling.api.ReceiveSignalStreamResponse,
667
- /**
668
- * @param {!proto.v1.signaling.api.ReceiveSignalStreamRequest} request
669
- * @return {!Uint8Array}
670
- */
671
- function(request) {
672
- return request.serializeBinary();
673
- },
674
- proto.v1.signaling.api.ReceiveSignalStreamResponse.deserializeBinary
675
- );
676
-
677
-
678
530
  /**
679
531
  * @param {!proto.v1.signaling.api.ReceiveSignalStreamRequest} request The request proto
680
- * @param {?Object<string, string>} metadata User defined
532
+ * @param {?Object<string, string>=} metadata User defined
681
533
  * call metadata
682
534
  * @return {!grpc.web.ClientReadableStream<!proto.v1.signaling.api.ReceiveSignalStreamResponse>}
683
535
  * The XHR Node Readable Stream
@@ -694,7 +546,7 @@ proto.v1.signaling.api.SignalingClient.prototype.receiveSignalStream =
694
546
 
695
547
  /**
696
548
  * @param {!proto.v1.signaling.api.ReceiveSignalStreamRequest} request The request proto
697
- * @param {?Object<string, string>} metadata User defined
549
+ * @param {?Object<string, string>=} metadata User defined
698
550
  * call metadata
699
551
  * @return {!grpc.web.ClientReadableStream<!proto.v1.signaling.api.ReceiveSignalStreamResponse>}
700
552
  * The XHR Node Readable Stream
@@ -709,5 +561,66 @@ proto.v1.signaling.api.SignalingPromiseClient.prototype.receiveSignalStream =
709
561
  };
710
562
 
711
563
 
564
+ /**
565
+ * @const
566
+ * @type {!grpc.web.MethodDescriptor<
567
+ * !proto.v1.signaling.api.GetSessionsRequest,
568
+ * !proto.v1.signaling.api.GetSessionsResponse>}
569
+ */
570
+ const methodDescriptor_Signaling_GetSessions = new grpc.web.MethodDescriptor(
571
+ '/v1.signaling.api.Signaling/GetSessions',
572
+ grpc.web.MethodType.UNARY,
573
+ proto.v1.signaling.api.GetSessionsRequest,
574
+ proto.v1.signaling.api.GetSessionsResponse,
575
+ /**
576
+ * @param {!proto.v1.signaling.api.GetSessionsRequest} request
577
+ * @return {!Uint8Array}
578
+ */
579
+ function(request) {
580
+ return request.serializeBinary();
581
+ },
582
+ proto.v1.signaling.api.GetSessionsResponse.deserializeBinary
583
+ );
584
+
585
+
586
+ /**
587
+ * @param {!proto.v1.signaling.api.GetSessionsRequest} request The
588
+ * request proto
589
+ * @param {?Object<string, string>} metadata User defined
590
+ * call metadata
591
+ * @param {function(?grpc.web.RpcError, ?proto.v1.signaling.api.GetSessionsResponse)}
592
+ * callback The callback function(error, response)
593
+ * @return {!grpc.web.ClientReadableStream<!proto.v1.signaling.api.GetSessionsResponse>|undefined}
594
+ * The XHR Node Readable Stream
595
+ */
596
+ proto.v1.signaling.api.SignalingClient.prototype.getSessions =
597
+ function(request, metadata, callback) {
598
+ return this.client_.rpcCall(this.hostname_ +
599
+ '/v1.signaling.api.Signaling/GetSessions',
600
+ request,
601
+ metadata || {},
602
+ methodDescriptor_Signaling_GetSessions,
603
+ callback);
604
+ };
605
+
606
+
607
+ /**
608
+ * @param {!proto.v1.signaling.api.GetSessionsRequest} request The
609
+ * request proto
610
+ * @param {?Object<string, string>=} metadata User defined
611
+ * call metadata
612
+ * @return {!Promise<!proto.v1.signaling.api.GetSessionsResponse>}
613
+ * Promise that resolves to the response
614
+ */
615
+ proto.v1.signaling.api.SignalingPromiseClient.prototype.getSessions =
616
+ function(request, metadata) {
617
+ return this.client_.unaryCall(this.hostname_ +
618
+ '/v1.signaling.api.Signaling/GetSessions',
619
+ request,
620
+ metadata || {},
621
+ methodDescriptor_Signaling_GetSessions);
622
+ };
623
+
624
+
712
625
  module.exports = proto.v1.signaling.api;
713
626
 
@@ -99,6 +99,74 @@ export namespace Signal {
99
99
  }
100
100
  }
101
101
 
102
+ export class RtcSession extends jspb.Message {
103
+ getSessionId(): string;
104
+ setSessionId(value: string): RtcSession;
105
+
106
+ getOfferPeerId(): string;
107
+ setOfferPeerId(value: string): RtcSession;
108
+
109
+ getAnswerPeerId(): string;
110
+ setAnswerPeerId(value: string): RtcSession;
111
+
112
+ getOrganizationId(): string;
113
+ setOrganizationId(value: string): RtcSession;
114
+
115
+ getSessionType(): string;
116
+ setSessionType(value: string): RtcSession;
117
+
118
+ serializeBinary(): Uint8Array;
119
+ toObject(includeInstance?: boolean): RtcSession.AsObject;
120
+ static toObject(includeInstance: boolean, msg: RtcSession): RtcSession.AsObject;
121
+ static serializeBinaryToWriter(message: RtcSession, writer: jspb.BinaryWriter): void;
122
+ static deserializeBinary(bytes: Uint8Array): RtcSession;
123
+ static deserializeBinaryFromReader(message: RtcSession, reader: jspb.BinaryReader): RtcSession;
124
+ }
125
+
126
+ export namespace RtcSession {
127
+ export type AsObject = {
128
+ sessionId: string,
129
+ offerPeerId: string,
130
+ answerPeerId: string,
131
+ organizationId: string,
132
+ sessionType: string,
133
+ }
134
+ }
135
+
136
+ export class GetSessionsRequest extends jspb.Message {
137
+ serializeBinary(): Uint8Array;
138
+ toObject(includeInstance?: boolean): GetSessionsRequest.AsObject;
139
+ static toObject(includeInstance: boolean, msg: GetSessionsRequest): GetSessionsRequest.AsObject;
140
+ static serializeBinaryToWriter(message: GetSessionsRequest, writer: jspb.BinaryWriter): void;
141
+ static deserializeBinary(bytes: Uint8Array): GetSessionsRequest;
142
+ static deserializeBinaryFromReader(message: GetSessionsRequest, reader: jspb.BinaryReader): GetSessionsRequest;
143
+ }
144
+
145
+ export namespace GetSessionsRequest {
146
+ export type AsObject = {
147
+ }
148
+ }
149
+
150
+ export class GetSessionsResponse extends jspb.Message {
151
+ getSessionsList(): Array<RtcSession>;
152
+ setSessionsList(value: Array<RtcSession>): GetSessionsResponse;
153
+ clearSessionsList(): GetSessionsResponse;
154
+ addSessions(value?: RtcSession, index?: number): RtcSession;
155
+
156
+ serializeBinary(): Uint8Array;
157
+ toObject(includeInstance?: boolean): GetSessionsResponse.AsObject;
158
+ static toObject(includeInstance: boolean, msg: GetSessionsResponse): GetSessionsResponse.AsObject;
159
+ static serializeBinaryToWriter(message: GetSessionsResponse, writer: jspb.BinaryWriter): void;
160
+ static deserializeBinary(bytes: Uint8Array): GetSessionsResponse;
161
+ static deserializeBinaryFromReader(message: GetSessionsResponse, reader: jspb.BinaryReader): GetSessionsResponse;
162
+ }
163
+
164
+ export namespace GetSessionsResponse {
165
+ export type AsObject = {
166
+ sessionsList: Array<RtcSession.AsObject>,
167
+ }
168
+ }
169
+
102
170
  export class GetHealthRequest extends jspb.Message {
103
171
  serializeBinary(): Uint8Array;
104
172
  toObject(includeInstance?: boolean): GetHealthRequest.AsObject;
@@ -386,4 +454,5 @@ export enum SessionType {
386
454
  TELEOP = 1,
387
455
  PORT_FORWARD = 2,
388
456
  OBSERVE = 3,
457
+ HEADLESS = 4,
389
458
  }