@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.
- package/dist/aiEnableRequest/index.js +1 -1
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/common/events/typed-events-scope.js +135 -0
- package/dist/common/events/typed-events-scope.js.map +1 -0
- package/dist/common/types.js +7 -0
- package/dist/common/types.js.map +1 -0
- package/dist/config.js +1 -1
- package/dist/constants.js +5 -0
- package/dist/constants.js.map +1 -1
- package/dist/e2ee/E2eeController.js +581 -0
- package/dist/e2ee/E2eeController.js.map +1 -0
- package/dist/e2ee/E2eeManager.js +50 -31
- package/dist/e2ee/E2eeManager.js.map +1 -1
- package/dist/e2ee/E2eeSignaling.js +18 -21
- package/dist/e2ee/E2eeSignaling.js.map +1 -1
- package/dist/e2ee/MediaEncryptionService.js +2 -5
- package/dist/e2ee/MediaEncryptionService.js.map +1 -1
- package/dist/e2ee/constants.js +28 -0
- package/dist/e2ee/constants.js.map +1 -0
- package/dist/e2ee/mls.js +85 -67
- package/dist/e2ee/mls.js.map +1 -1
- package/dist/e2ee/types.js +52 -13
- package/dist/e2ee/types.js.map +1 -1
- package/dist/e2ee/wasm.d.js.map +1 -1
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/meeting/index.js +394 -249
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/request.js +69 -58
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/util.js +4 -2
- package/dist/meeting/util.js.map +1 -1
- package/dist/meetings/index.js +87 -61
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/util.js +10 -0
- package/dist/meetings/util.js.map +1 -1
- package/dist/metrics/constants.js +2 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/types/common/events/typed-events-scope.d.ts +73 -0
- package/dist/types/common/types.d.ts +9 -0
- package/dist/types/constants.d.ts +5 -0
- package/dist/types/e2ee/E2eeController.d.ts +130 -0
- package/dist/types/e2ee/E2eeManager.d.ts +26 -6
- package/dist/types/e2ee/E2eeSignaling.d.ts +1 -7
- package/dist/types/e2ee/MediaEncryptionService.d.ts +1 -3
- package/dist/types/e2ee/constants.d.ts +12 -0
- package/dist/types/e2ee/mls.d.ts +16 -10
- package/dist/types/e2ee/types.d.ts +92 -35
- package/dist/types/hashTree/hashTreeParser.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/meeting/index.d.ts +34 -0
- package/dist/types/meeting/util.d.ts +1 -1
- package/dist/types/metrics/constants.d.ts +1 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +22 -22
- package/src/common/events/typed-events-scope.ts +110 -0
- package/src/common/types.ts +10 -0
- package/src/constants.ts +6 -0
- package/src/e2ee/DESIGN.md +363 -0
- package/src/e2ee/E2eeController.ts +487 -0
- package/src/e2ee/E2eeManager.ts +48 -27
- package/src/e2ee/E2eeSignaling.ts +13 -28
- package/src/e2ee/MediaEncryptionService.ts +2 -4
- package/src/e2ee/constants.ts +34 -0
- package/src/e2ee/mls.ts +62 -32
- package/src/e2ee/types.ts +99 -34
- package/src/e2ee/wasm.d.ts +18 -14
- package/src/hashTree/hashTreeParser.ts +1 -1
- package/src/index.ts +1 -0
- package/src/meeting/index.ts +155 -0
- package/src/meeting/request.ts +16 -0
- package/src/meeting/util.ts +2 -1
- package/src/meetings/index.ts +30 -5
- package/src/meetings/util.ts +8 -0
- package/src/metrics/constants.ts +1 -0
- package/test/unit/spec/common/events/typed-events-scope.ts +88 -0
- package/test/unit/spec/e2ee/E2eeController.ts +662 -0
- package/test/unit/spec/e2ee/E2eeManager.ts +53 -29
- package/test/unit/spec/e2ee/E2eeSignaling.ts +19 -10
- package/test/unit/spec/e2ee/mls.ts +84 -32
- package/test/unit/spec/meeting/index.js +662 -0
- package/test/unit/spec/meeting/request.js +35 -0
- package/test/unit/spec/meeting/utils.js +4 -0
- package/test/unit/spec/meetings/index.js +36 -1
- package/test/unit/spec/meetings/utils.js +15 -0
- package/test/utils/webex-config.js +1 -0
package/dist/meeting/request.js
CHANGED
|
@@ -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("
|
|
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(
|
|
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 =
|
|
99
|
-
_this.buildLocusDeltaRequestOptions =
|
|
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(
|
|
165
|
+
deviceCapabilities.push(_constants2.BREAKOUTS.BREAKOUTS_SUPPORTED);
|
|
160
166
|
}
|
|
161
167
|
if (liveAnnotationSupported) {
|
|
162
|
-
deviceCapabilities.push(
|
|
168
|
+
deviceCapabilities.push(_constants2.ANNOTATION.ANNOTATION_ON_SHARE_SUPPORTED);
|
|
163
169
|
}
|
|
164
170
|
if (enableSimultaneousInterpretation) {
|
|
165
|
-
deviceCapabilities.push(
|
|
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(
|
|
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(
|
|
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(
|
|
252
|
+
url = url.concat("?".concat(_constants2.ALTERNATE_REDIRECT_TRUE));
|
|
242
253
|
if (resourceId === inviteeAddress) {
|
|
243
254
|
body.callPreferences = {
|
|
244
|
-
requestedMedia: [
|
|
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:
|
|
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:
|
|
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(
|
|
331
|
+
var uri = "".concat(locusUrl, "/").concat(_constants2.PARTICIPANT);
|
|
321
332
|
var body = {
|
|
322
333
|
device: {
|
|
323
334
|
deviceType: _common.deviceType.PROVISIONAL,
|
|
324
|
-
provisionalType:
|
|
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:
|
|
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(
|
|
373
|
+
var uri = "".concat(locusUrl, "/").concat(_constants2.PARTICIPANT);
|
|
363
374
|
var body = {
|
|
364
375
|
device: {
|
|
365
376
|
deviceType: _common.deviceType.PROVISIONAL,
|
|
366
|
-
provisionalType:
|
|
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:
|
|
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:
|
|
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(
|
|
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:
|
|
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(
|
|
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:
|
|
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(
|
|
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:
|
|
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(
|
|
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:
|
|
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(
|
|
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:
|
|
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(
|
|
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:
|
|
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 ===
|
|
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:
|
|
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:
|
|
674
|
-
uri: "".concat(locusUrl, "/").concat(
|
|
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:
|
|
732
|
-
uri: "".concat(locusUrl, "/").concat(
|
|
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(
|
|
764
|
+
var uri = "".concat(locusUrl, "/").concat(_constants2.END);
|
|
754
765
|
|
|
755
766
|
// @ts-ignore
|
|
756
767
|
return this.locusDeltaRequest({
|
|
757
|
-
method:
|
|
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:
|
|
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:
|
|
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:
|
|
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(
|
|
865
|
+
var uri = "".concat(locusUrl, "/").concat(_constants2.CONTROLS);
|
|
855
866
|
|
|
856
867
|
// @ts-ignore
|
|
857
868
|
return this.locusDeltaRequest({
|
|
858
|
-
method:
|
|
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:
|
|
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(
|
|
906
|
+
var uri = "".concat(locusUrl, "/").concat(_constants2.PARTICIPANT, "/").concat(selfId, "/").concat(_constants2.CONTROLS);
|
|
896
907
|
return this.locusDeltaRequest({
|
|
897
|
-
method:
|
|
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(
|
|
936
|
+
var uri = "".concat(locusUrl, "/").concat(_constants2.PARTICIPANT, "/").concat(selfId, "/").concat(_constants2.CONTROLS);
|
|
926
937
|
return this.locusDeltaRequest({
|
|
927
|
-
method:
|
|
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:
|
|
950
|
-
uri: "".concat(locusUrl, "/").concat(
|
|
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:
|
|
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:
|
|
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:
|
|
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(
|
|
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:
|
|
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));
|