@webex/plugin-meetings 3.13.0-next.15 → 3.13.0-next.17

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 (89) hide show
  1. package/dist/aiEnableRequest/index.js +1 -1
  2. package/dist/breakouts/breakout.js +1 -1
  3. package/dist/breakouts/index.js +1 -1
  4. package/dist/common/events/typed-events-scope.js +135 -0
  5. package/dist/common/events/typed-events-scope.js.map +1 -0
  6. package/dist/common/types.js +7 -0
  7. package/dist/common/types.js.map +1 -0
  8. package/dist/config.js +1 -1
  9. package/dist/constants.js +5 -0
  10. package/dist/constants.js.map +1 -1
  11. package/dist/e2ee/E2eeController.js +581 -0
  12. package/dist/e2ee/E2eeController.js.map +1 -0
  13. package/dist/e2ee/E2eeManager.js +50 -31
  14. package/dist/e2ee/E2eeManager.js.map +1 -1
  15. package/dist/e2ee/E2eeSignaling.js +18 -21
  16. package/dist/e2ee/E2eeSignaling.js.map +1 -1
  17. package/dist/e2ee/MediaEncryptionService.js +2 -5
  18. package/dist/e2ee/MediaEncryptionService.js.map +1 -1
  19. package/dist/e2ee/constants.js +28 -0
  20. package/dist/e2ee/constants.js.map +1 -0
  21. package/dist/e2ee/mls.js +85 -67
  22. package/dist/e2ee/mls.js.map +1 -1
  23. package/dist/e2ee/types.js +52 -13
  24. package/dist/e2ee/types.js.map +1 -1
  25. package/dist/e2ee/wasm.d.js.map +1 -1
  26. package/dist/hashTree/hashTreeParser.js.map +1 -1
  27. package/dist/index.js.map +1 -1
  28. package/dist/interpretation/index.js +1 -1
  29. package/dist/interpretation/siLanguage.js +1 -1
  30. package/dist/meeting/index.js +394 -249
  31. package/dist/meeting/index.js.map +1 -1
  32. package/dist/meeting/request.js +69 -58
  33. package/dist/meeting/request.js.map +1 -1
  34. package/dist/meeting/util.js +4 -2
  35. package/dist/meeting/util.js.map +1 -1
  36. package/dist/meetings/index.js +87 -61
  37. package/dist/meetings/index.js.map +1 -1
  38. package/dist/meetings/util.js +10 -0
  39. package/dist/meetings/util.js.map +1 -1
  40. package/dist/metrics/constants.js +2 -1
  41. package/dist/metrics/constants.js.map +1 -1
  42. package/dist/types/common/events/typed-events-scope.d.ts +73 -0
  43. package/dist/types/common/types.d.ts +9 -0
  44. package/dist/types/constants.d.ts +5 -0
  45. package/dist/types/e2ee/E2eeController.d.ts +130 -0
  46. package/dist/types/e2ee/E2eeManager.d.ts +26 -6
  47. package/dist/types/e2ee/E2eeSignaling.d.ts +1 -7
  48. package/dist/types/e2ee/MediaEncryptionService.d.ts +1 -3
  49. package/dist/types/e2ee/constants.d.ts +12 -0
  50. package/dist/types/e2ee/mls.d.ts +16 -10
  51. package/dist/types/e2ee/types.d.ts +92 -35
  52. package/dist/types/hashTree/hashTreeParser.d.ts +1 -1
  53. package/dist/types/index.d.ts +1 -0
  54. package/dist/types/meeting/index.d.ts +34 -0
  55. package/dist/types/meeting/util.d.ts +1 -1
  56. package/dist/types/metrics/constants.d.ts +1 -0
  57. package/dist/webinar/index.js +1 -1
  58. package/package.json +22 -22
  59. package/src/common/events/typed-events-scope.ts +110 -0
  60. package/src/common/types.ts +10 -0
  61. package/src/constants.ts +6 -0
  62. package/src/e2ee/DESIGN.md +363 -0
  63. package/src/e2ee/E2eeController.ts +487 -0
  64. package/src/e2ee/E2eeManager.ts +48 -27
  65. package/src/e2ee/E2eeSignaling.ts +13 -28
  66. package/src/e2ee/MediaEncryptionService.ts +2 -4
  67. package/src/e2ee/constants.ts +34 -0
  68. package/src/e2ee/mls.ts +62 -32
  69. package/src/e2ee/types.ts +99 -34
  70. package/src/e2ee/wasm.d.ts +18 -14
  71. package/src/hashTree/hashTreeParser.ts +1 -1
  72. package/src/index.ts +1 -0
  73. package/src/meeting/index.ts +155 -0
  74. package/src/meeting/request.ts +16 -0
  75. package/src/meeting/util.ts +2 -1
  76. package/src/meetings/index.ts +30 -5
  77. package/src/meetings/util.ts +8 -0
  78. package/src/metrics/constants.ts +1 -0
  79. package/test/unit/spec/common/events/typed-events-scope.ts +88 -0
  80. package/test/unit/spec/e2ee/E2eeController.ts +662 -0
  81. package/test/unit/spec/e2ee/E2eeManager.ts +53 -29
  82. package/test/unit/spec/e2ee/E2eeSignaling.ts +19 -10
  83. package/test/unit/spec/e2ee/mls.ts +84 -32
  84. package/test/unit/spec/meeting/index.js +662 -0
  85. package/test/unit/spec/meeting/request.js +35 -0
  86. package/test/unit/spec/meeting/utils.js +4 -0
  87. package/test/unit/spec/meetings/index.js +36 -1
  88. package/test/unit/spec/meetings/utils.js +15 -0
  89. package/test/utils/webex-config.js +1 -0
@@ -29,8 +29,10 @@ var _webexCore = require("@webex/webex-core");
29
29
  var _common = require("@webex/common");
30
30
  var _internalPluginMetrics = require("@webex/internal-plugin-metrics");
31
31
  var _loggerProxy = _interopRequireDefault(require("../common/logs/logger-proxy"));
32
- var _constants = require("../constants");
33
- var _util = _interopRequireDefault(require("./util"));
32
+ var _constants = require("../e2ee/constants");
33
+ var _util = _interopRequireDefault(require("../meetings/util"));
34
+ var _constants2 = require("../constants");
35
+ var _util2 = _interopRequireDefault(require("./util"));
34
36
  var _excluded = ["meeting"];
35
37
  function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
36
38
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -66,7 +68,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
66
68
  while (1) switch (_context.prev = _context.next) {
67
69
  case 0:
68
70
  _context.next = 1;
69
- return _this.webex.boundedStorage.get(_constants.REACHABILITY.namespace, _constants.REACHABILITY.localStorageJoinCookie).catch(function () {});
71
+ return _this.webex.boundedStorage.get(_constants2.REACHABILITY.namespace, _constants2.REACHABILITY.localStorageJoinCookie).catch(function () {});
70
72
  case 1:
71
73
  joinCookieRaw = _context.sent;
72
74
  if (!joinCookieRaw) {
@@ -95,8 +97,8 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
95
97
  }
96
98
  }, _callee, null, [[2, 4]]);
97
99
  })));
98
- _this.locusDeltaRequest = _util.default.generateLocusDeltaRequest(meeting);
99
- _this.buildLocusDeltaRequestOptions = _util.default.generateBuildLocusDeltaRequestOptions(meeting);
100
+ _this.locusDeltaRequest = _util2.default.generateLocusDeltaRequest(meeting);
101
+ _this.buildLocusDeltaRequestOptions = _util2.default.generateBuildLocusDeltaRequestOptions(meeting);
100
102
  _this.changeVideoLayoutDebounced = (0, _lodash.debounce)(_this.changeVideoLayout, 2000, {
101
103
  leading: true,
102
104
  trailing: true
@@ -129,6 +131,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
129
131
  */
130
132
  function () {
131
133
  var _joinMeeting = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(options) {
134
+ var _this$webex, _this$webex2;
132
135
  var asResourceOccupant, inviteeAddress, meetingNumber, permissionToken, deviceUrl, locusUrl, locusClusterUrl, resourceId, correlationId, ensureConversation, moderator, pin, moveToResource, roapMessage, reachability, breakoutsSupported, locale, _options$deviceCapabi, deviceCapabilities, liveAnnotationSupported, enableSimultaneousInterpretation, clientMediaPreferences, alias, url, body, clusterUrl, _t2;
133
136
  return _regenerator.default.wrap(function (_context2) {
134
137
  while (1) switch (_context2.prev = _context2.next) {
@@ -150,19 +153,27 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
150
153
  allowMultiDevice: true,
151
154
  ensureConversation: ensureConversation || false,
152
155
  supportsNativeLobby: 1,
156
+ // @ts-ignore - config comes from registerPlugin
157
+ supportsV2E2EEncryption: _util.default.isE2eeEnabledAndSupported(// @ts-ignore - config comes from registerPlugin
158
+ (_this$webex = this.webex) === null || _this$webex === void 0 ? void 0 : _this$webex.config),
153
159
  clientMediaPreferences: clientMediaPreferences
154
160
  };
155
161
  if (alias) {
156
162
  body.alias = alias;
157
163
  }
158
164
  if (breakoutsSupported) {
159
- deviceCapabilities.push(_constants.BREAKOUTS.BREAKOUTS_SUPPORTED);
165
+ deviceCapabilities.push(_constants2.BREAKOUTS.BREAKOUTS_SUPPORTED);
160
166
  }
161
167
  if (liveAnnotationSupported) {
162
- deviceCapabilities.push(_constants.ANNOTATION.ANNOTATION_ON_SHARE_SUPPORTED);
168
+ deviceCapabilities.push(_constants2.ANNOTATION.ANNOTATION_ON_SHARE_SUPPORTED);
163
169
  }
164
170
  if (enableSimultaneousInterpretation) {
165
- deviceCapabilities.push(_constants.INTERPRETATION.CAPABILITIES.HOST_CONTROL_SI_SUPPORTED, _constants.INTERPRETATION.CAPABILITIES.INTERPRETER_CONTROL_SI_SUPPORTED, _constants.INTERPRETATION.CAPABILITIES.SI_HANDOVER_SUPPORTED, _constants.INTERPRETATION.CAPABILITIES.SIGN_INTERPRETER_SUPPORTED);
171
+ deviceCapabilities.push(_constants2.INTERPRETATION.CAPABILITIES.HOST_CONTROL_SI_SUPPORTED, _constants2.INTERPRETATION.CAPABILITIES.INTERPRETER_CONTROL_SI_SUPPORTED, _constants2.INTERPRETATION.CAPABILITIES.SI_HANDOVER_SUPPORTED, _constants2.INTERPRETATION.CAPABILITIES.SIGN_INTERPRETER_SUPPORTED);
172
+ }
173
+ // @ts-ignore - config comes from registerPlugin
174
+ if (_util.default.isE2eeEnabledAndSupported(// @ts-ignore - config comes from registerPlugin
175
+ (_this$webex2 = this.webex) === null || _this$webex2 === void 0 ? void 0 : _this$webex2.config)) {
176
+ deviceCapabilities.push(_constants.E2EE_1K_SUPPORTED);
166
177
  }
167
178
 
168
179
  // append installationId to device config if it exists
@@ -202,7 +213,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
202
213
  _context2.next = 1;
203
214
  break;
204
215
  }
205
- url = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT);
216
+ url = "".concat(locusUrl, "/").concat(_constants2.PARTICIPANT);
206
217
  _context2.next = 7;
207
218
  break;
208
219
  case 1:
@@ -225,7 +236,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
225
236
  // @ts-ignore
226
237
  clusterUrl = this.webex.internal.services.get('locus');
227
238
  case 5:
228
- url = "".concat(clusterUrl, "/").concat(_constants.LOCI, "/").concat(_constants.CALL);
239
+ url = "".concat(clusterUrl, "/").concat(_constants2.LOCI, "/").concat(_constants2.CALL);
229
240
  body.invitee = {
230
241
  address: inviteeAddress || "wbxmn:".concat(meetingNumber)
231
242
  };
@@ -238,10 +249,10 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
238
249
  throw _t2;
239
250
  case 7:
240
251
  // TODO: -- this will be resolved in SDK request
241
- url = url.concat("?".concat(_constants.ALTERNATE_REDIRECT_TRUE));
252
+ url = url.concat("?".concat(_constants2.ALTERNATE_REDIRECT_TRUE));
242
253
  if (resourceId === inviteeAddress) {
243
254
  body.callPreferences = {
244
- requestedMedia: [_constants._SLIDES_]
255
+ requestedMedia: [_constants2._SLIDES_]
245
256
  };
246
257
  }
247
258
  if (roapMessage || reachability) {
@@ -255,7 +266,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
255
266
 
256
267
  /// @ts-ignore
257
268
  return _context2.abrupt("return", this.request({
258
- method: _constants.HTTP_VERBS.POST,
269
+ method: _constants2.HTTP_VERBS.POST,
259
270
  uri: url,
260
271
  body: body
261
272
  }));
@@ -290,7 +301,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
290
301
 
291
302
  // @ts-ignore
292
303
  return this.request({
293
- method: _constants.HTTP_VERBS.POST,
304
+ method: _constants2.HTTP_VERBS.POST,
294
305
  uri: captchaRefreshUrl,
295
306
  body: body
296
307
  }).catch(function (err) {
@@ -317,11 +328,11 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
317
328
  clientUrl = _ref3.clientUrl,
318
329
  correlationId = _ref3.correlationId;
319
330
  _loggerProxy.default.logger.info('Meeting:request#dialIn --> Provisioning a dial in device', correlationId);
320
- var uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT);
331
+ var uri = "".concat(locusUrl, "/").concat(_constants2.PARTICIPANT);
321
332
  var body = {
322
333
  device: {
323
334
  deviceType: _common.deviceType.PROVISIONAL,
324
- provisionalType: _constants.PROVISIONAL_TYPE_DIAL_IN,
335
+ provisionalType: _constants2.PROVISIONAL_TYPE_DIAL_IN,
325
336
  url: dialInUrl,
326
337
  clientUrl: clientUrl
327
338
  },
@@ -330,7 +341,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
330
341
 
331
342
  // @ts-ignore
332
343
  return this.locusDeltaRequest({
333
- method: _constants.HTTP_VERBS.POST,
344
+ method: _constants2.HTTP_VERBS.POST,
334
345
  uri: uri,
335
346
  body: body
336
347
  }).catch(function (err) {
@@ -359,11 +370,11 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
359
370
  clientUrl = _ref4.clientUrl,
360
371
  correlationId = _ref4.correlationId;
361
372
  _loggerProxy.default.logger.info('Meeting:request#dialOut --> Provisioning a dial out device', correlationId);
362
- var uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT);
373
+ var uri = "".concat(locusUrl, "/").concat(_constants2.PARTICIPANT);
363
374
  var body = {
364
375
  device: {
365
376
  deviceType: _common.deviceType.PROVISIONAL,
366
- provisionalType: _constants.PROVISIONAL_TYPE_DIAL_OUT,
377
+ provisionalType: _constants2.PROVISIONAL_TYPE_DIAL_OUT,
367
378
  url: dialOutUrl,
368
379
  dialoutAddress: phoneNumber,
369
380
  clientUrl: clientUrl
@@ -373,7 +384,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
373
384
 
374
385
  // @ts-ignore
375
386
  return this.locusDeltaRequest({
376
- method: _constants.HTTP_VERBS.POST,
387
+ method: _constants2.HTTP_VERBS.POST,
377
388
  uri: uri,
378
389
  body: body
379
390
  }).catch(function (err) {
@@ -395,7 +406,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
395
406
  if (url) {
396
407
  // @ts-ignore
397
408
  return this.request({
398
- method: _constants.HTTP_VERBS.GET,
409
+ method: _constants2.HTTP_VERBS.GET,
399
410
  uri: url
400
411
  }).catch(function (err) {
401
412
  _loggerProxy.default.logger.error("Meeting:request#getLocusDTO --> Error getting latest locus, error ".concat(err));
@@ -423,7 +434,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
423
434
  correlationId = _ref5.correlationId,
424
435
  selfId = _ref5.selfId;
425
436
  _loggerProxy.default.logger.info("Meeting:request#disconnectPhoneAudio --> request phone ".concat(phoneUrl, " to leave"), correlationId);
426
- var uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(selfId, "/").concat(_constants.LEAVE);
437
+ var uri = "".concat(locusUrl, "/").concat(_constants2.PARTICIPANT, "/").concat(selfId, "/").concat(_constants2.LEAVE);
427
438
  var body = {
428
439
  device: {
429
440
  deviceType: _common.deviceType.PROVISIONAL,
@@ -434,7 +445,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
434
445
 
435
446
  // @ts-ignore
436
447
  return this.locusDeltaRequest({
437
- method: _constants.HTTP_VERBS.PUT,
448
+ method: _constants2.HTTP_VERBS.PUT,
438
449
  uri: uri,
439
450
  body: body
440
451
  }).catch(function (err) {
@@ -461,7 +472,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
461
472
  url = _ref6.deviceUrl,
462
473
  resourceId = _ref6.resourceId,
463
474
  correlationId = _ref6.correlationId;
464
- var uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(selfId, "/").concat(_constants.LEAVE);
475
+ var uri = "".concat(locusUrl, "/").concat(_constants2.PARTICIPANT, "/").concat(selfId, "/").concat(_constants2.LEAVE);
465
476
  var body = {
466
477
  device: {
467
478
  // @ts-ignore
@@ -472,7 +483,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
472
483
  correlationId: correlationId
473
484
  };
474
485
  return {
475
- method: _constants.HTTP_VERBS.PUT,
486
+ method: _constants2.HTTP_VERBS.PUT,
476
487
  uri: uri,
477
488
  body: body
478
489
  };
@@ -492,7 +503,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
492
503
  resourceId = _ref7.resourceId,
493
504
  correlationId = _ref7.correlationId;
494
505
  _loggerProxy.default.logger.info('Meeting:request#leaveMeeting --> Leaving a meeting', correlationId);
495
- var uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(selfId, "/").concat(_constants.LEAVE);
506
+ var uri = "".concat(locusUrl, "/").concat(_constants2.PARTICIPANT, "/").concat(selfId, "/").concat(_constants2.LEAVE);
496
507
  var body = {
497
508
  device: {
498
509
  // @ts-ignore
@@ -503,7 +514,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
503
514
  correlationId: correlationId
504
515
  };
505
516
  return this.locusDeltaRequest({
506
- method: _constants.HTTP_VERBS.PUT,
517
+ method: _constants2.HTTP_VERBS.PUT,
507
518
  uri: uri,
508
519
  body: body
509
520
  });
@@ -531,7 +542,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
531
542
  }, {
532
543
  key: "acknowledgeMeeting",
533
544
  value: function acknowledgeMeeting(options) {
534
- var uri = "".concat(options.locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(_constants.ALERT);
545
+ var uri = "".concat(options.locusUrl, "/").concat(_constants2.PARTICIPANT, "/").concat(_constants2.ALERT);
535
546
  var body = {
536
547
  device: {
537
548
  // @ts-ignore
@@ -541,7 +552,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
541
552
  correlationId: options.correlationId
542
553
  };
543
554
  return this.locusDeltaRequest({
544
- method: _constants.HTTP_VERBS.PUT,
555
+ method: _constants2.HTTP_VERBS.PUT,
545
556
  uri: uri,
546
557
  body: body
547
558
  });
@@ -556,14 +567,14 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
556
567
  }, {
557
568
  key: "lockMeeting",
558
569
  value: function lockMeeting(options) {
559
- var uri = "".concat(options.locusUrl, "/").concat(_constants.CONTROLS);
570
+ var uri = "".concat(options.locusUrl, "/").concat(_constants2.CONTROLS);
560
571
  var body = {
561
572
  lock: {
562
573
  locked: options.lock
563
574
  }
564
575
  };
565
576
  return this.locusDeltaRequest({
566
- method: _constants.HTTP_VERBS.PATCH,
577
+ method: _constants2.HTTP_VERBS.PATCH,
567
578
  uri: uri,
568
579
  body: body
569
580
  });
@@ -580,7 +591,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
580
591
  }, {
581
592
  key: "declineMeeting",
582
593
  value: function declineMeeting(options) {
583
- var uri = "".concat(options.locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(_constants.DECLINE);
594
+ var uri = "".concat(options.locusUrl, "/").concat(_constants2.PARTICIPANT, "/").concat(_constants2.DECLINE);
584
595
  var body = _objectSpread({
585
596
  device: {
586
597
  // @ts-ignore
@@ -591,7 +602,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
591
602
  reason: options.reason
592
603
  });
593
604
  return this.locusDeltaRequest({
594
- method: _constants.HTTP_VERBS.PUT,
605
+ method: _constants2.HTTP_VERBS.PUT,
595
606
  uri: uri,
596
607
  body: body
597
608
  });
@@ -616,7 +627,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
616
627
  };
617
628
 
618
629
  /* istanbul ignore else */
619
- if (options.disposition === _constants.FLOOR_ACTION.GRANTED) {
630
+ if (options.disposition === _constants2.FLOOR_ACTION.GRANTED) {
620
631
  floorReq = {
621
632
  beneficiary: {
622
633
  url: options.personUrl,
@@ -649,7 +660,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
649
660
  // @ts-ignore
650
661
  return this.request({
651
662
  uri: options.uri,
652
- method: _constants.HTTP_VERBS.PUT,
663
+ method: _constants2.HTTP_VERBS.PUT,
653
664
  body: body
654
665
  });
655
666
  }
@@ -670,8 +681,8 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
670
681
  tones = _ref8.tones;
671
682
  // @ts-ignore
672
683
  return this.locusDeltaRequest({
673
- method: _constants.HTTP_VERBS.POST,
674
- uri: "".concat(locusUrl, "/").concat(_constants.SEND_DTMF_ENDPOINT),
684
+ method: _constants2.HTTP_VERBS.POST,
685
+ uri: "".concat(locusUrl, "/").concat(_constants2.SEND_DTMF_ENDPOINT),
675
686
  body: {
676
687
  deviceUrl: deviceUrl,
677
688
  dtmf: {
@@ -728,8 +739,8 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
728
739
 
729
740
  // @ts-ignore
730
741
  return this.locusDeltaRequest({
731
- method: _constants.HTTP_VERBS.PUT,
732
- uri: "".concat(locusUrl, "/").concat(_constants.CONTROLS),
742
+ method: _constants2.HTTP_VERBS.PUT,
743
+ uri: "".concat(locusUrl, "/").concat(_constants2.CONTROLS),
733
744
  body: {
734
745
  layout: {
735
746
  deviceUrl: deviceUrl,
@@ -750,11 +761,11 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
750
761
  key: "endMeetingForAll",
751
762
  value: function endMeetingForAll(_ref0) {
752
763
  var locusUrl = _ref0.locusUrl;
753
- var uri = "".concat(locusUrl, "/").concat(_constants.END);
764
+ var uri = "".concat(locusUrl, "/").concat(_constants2.END);
754
765
 
755
766
  // @ts-ignore
756
767
  return this.locusDeltaRequest({
757
- method: _constants.HTTP_VERBS.POST,
768
+ method: _constants2.HTTP_VERBS.POST,
758
769
  uri: uri
759
770
  });
760
771
  }
@@ -771,7 +782,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
771
782
  var keepAliveUrl = _ref1.keepAliveUrl;
772
783
  // @ts-ignore
773
784
  return this.request({
774
- method: _constants.HTTP_VERBS.GET,
785
+ method: _constants2.HTTP_VERBS.GET,
775
786
  uri: keepAliveUrl
776
787
  });
777
788
  }
@@ -794,7 +805,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
794
805
 
795
806
  // @ts-ignore
796
807
  return this.request({
797
- method: _constants.HTTP_VERBS.POST,
808
+ method: _constants2.HTTP_VERBS.POST,
798
809
  uri: uri,
799
810
  body: {
800
811
  sender: {
@@ -829,7 +840,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
829
840
 
830
841
  // @ts-ignore
831
842
  return this.request({
832
- method: _constants.HTTP_VERBS.POST,
843
+ method: _constants2.HTTP_VERBS.POST,
833
844
  uri: uri,
834
845
  body: {
835
846
  meetingInstanceId: meetingInstanceId,
@@ -851,11 +862,11 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
851
862
  var enable = _ref12.enable,
852
863
  locusUrl = _ref12.locusUrl,
853
864
  requestingParticipantId = _ref12.requestingParticipantId;
854
- var uri = "".concat(locusUrl, "/").concat(_constants.CONTROLS);
865
+ var uri = "".concat(locusUrl, "/").concat(_constants2.CONTROLS);
855
866
 
856
867
  // @ts-ignore
857
868
  return this.locusDeltaRequest({
858
- method: _constants.HTTP_VERBS.PUT,
869
+ method: _constants2.HTTP_VERBS.PUT,
859
870
  uri: uri,
860
871
  body: {
861
872
  reactions: {
@@ -870,7 +881,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
870
881
  value: function getLocusStatusByUrl(locusUrl) {
871
882
  // @ts-ignore
872
883
  return this.request({
873
- method: _constants.HTTP_VERBS.GET,
884
+ method: _constants2.HTTP_VERBS.GET,
874
885
  uri: locusUrl
875
886
  });
876
887
  }
@@ -892,9 +903,9 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
892
903
  locusUrl = _ref13.locusUrl,
893
904
  deviceUrl = _ref13.deviceUrl,
894
905
  selfId = _ref13.selfId;
895
- var uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(selfId, "/").concat(_constants.CONTROLS);
906
+ var uri = "".concat(locusUrl, "/").concat(_constants2.PARTICIPANT, "/").concat(selfId, "/").concat(_constants2.CONTROLS);
896
907
  return this.locusDeltaRequest({
897
- method: _constants.HTTP_VERBS.PATCH,
908
+ method: _constants2.HTTP_VERBS.PATCH,
898
909
  uri: uri,
899
910
  body: {
900
911
  brb: {
@@ -922,9 +933,9 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
922
933
  locusUrl = _ref14.locusUrl,
923
934
  deviceUrl = _ref14.deviceUrl,
924
935
  selfId = _ref14.selfId;
925
- var uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(selfId, "/").concat(_constants.CONTROLS);
936
+ var uri = "".concat(locusUrl, "/").concat(_constants2.PARTICIPANT, "/").concat(selfId, "/").concat(_constants2.CONTROLS);
926
937
  return this.locusDeltaRequest({
927
- method: _constants.HTTP_VERBS.PATCH,
938
+ method: _constants2.HTTP_VERBS.PATCH,
928
939
  uri: uri,
929
940
  body: {
930
941
  consent: {
@@ -946,8 +957,8 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
946
957
  key: "synchronizeStage",
947
958
  value: function synchronizeStage(locusUrl, videoLayout) {
948
959
  return this.locusDeltaRequest({
949
- method: _constants.HTTP_VERBS.PATCH,
950
- uri: "".concat(locusUrl, "/").concat(_constants.CONTROLS),
960
+ method: _constants2.HTTP_VERBS.PATCH,
961
+ uri: "".concat(locusUrl, "/").concat(_constants2.CONTROLS),
951
962
  body: {
952
963
  videoLayout: videoLayout
953
964
  }
@@ -967,7 +978,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
967
978
  value: function notifyHost(siteFullUrl, locusId, meetingUuid, displayName) {
968
979
  // @ts-ignore
969
980
  return this.request({
970
- method: _constants.HTTP_VERBS.POST,
981
+ method: _constants2.HTTP_VERBS.POST,
971
982
  uri: "https://".concat(siteFullUrl, "/wbxappapi/v1/meetings/").concat(meetingUuid, "/notifyhost"),
972
983
  body: {
973
984
  displayName: displayName,
@@ -1005,7 +1016,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
1005
1016
  _context3.prev = 1;
1006
1017
  _context3.next = 2;
1007
1018
  return this.request({
1008
- method: _constants.HTTP_VERBS.POST,
1019
+ method: _constants2.HTTP_VERBS.POST,
1009
1020
  service: 'hydra',
1010
1021
  resource: 'meetingParticipants/callout',
1011
1022
  body: body,
@@ -1054,7 +1065,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
1054
1065
  _context4.prev = 1;
1055
1066
  _context4.next = 2;
1056
1067
  return this.request({
1057
- method: _constants.HTTP_VERBS.POST,
1068
+ method: _constants2.HTTP_VERBS.POST,
1058
1069
  service: 'hydra',
1059
1070
  resource: 'meetingParticipants/cancelCallout',
1060
1071
  body: body,
@@ -1113,9 +1124,9 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
1113
1124
  return _context5.abrupt("return", _promise.default.reject(new Error('locusUrl and participantId are required')));
1114
1125
  case 1:
1115
1126
  practicePrefix = isPracticeSession ? '/practiceSession' : '';
1116
- uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(requestingParticipantId).concat(practicePrefix, "/datachannel/token"); // @ts-ignore
1127
+ uri = "".concat(locusUrl, "/").concat(_constants2.PARTICIPANT, "/").concat(requestingParticipantId).concat(practicePrefix, "/datachannel/token"); // @ts-ignore
1117
1128
  return _context5.abrupt("return", this.locusDeltaRequest({
1118
- method: _constants.HTTP_VERBS.GET,
1129
+ method: _constants2.HTTP_VERBS.GET,
1119
1130
  uri: uri
1120
1131
  }).catch(function (err) {
1121
1132
  _loggerProxy.default.logger.warn("Meeting:request#fetchDatachannelToken --> Failed to retrieve ".concat(isPracticeSession ? 'practice session ' : '', "datachannel token: ").concat((err === null || err === void 0 ? void 0 : err.message) || err));