fcr-core 3.8.0-alpha → 3.8.1-alpha

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 (60) hide show
  1. package/lib/chat-connection/index.js +26 -40
  2. package/lib/engine/index.js +72 -66
  3. package/lib/imports.js +0 -1
  4. package/lib/media-control/desktop.js +13 -18
  5. package/lib/media-control/mobile.js +13 -18
  6. package/lib/monitor-control/index.js +5 -10
  7. package/lib/peer-session/index.js +39 -47
  8. package/lib/plugins/chatroom.js +213 -229
  9. package/lib/room-control/ability-control/index.js +9 -14
  10. package/lib/room-control/group-control/index.js +16 -21
  11. package/lib/room-control/helpers/validation-helper.js +1 -1
  12. package/lib/room-control/index.js +36 -53
  13. package/lib/room-control/interpreter-control/index.js +34 -47
  14. package/lib/room-control/interpreter-control/room.js +4 -6
  15. package/lib/room-control/join-before-host-waitingroom-control/index.js +4 -6
  16. package/lib/room-control/mainroom-control/index.js +27 -35
  17. package/lib/room-control/privilege-control/helper.js +5 -8
  18. package/lib/room-control/privilege-control/index.js +19 -26
  19. package/lib/room-control/room-connector-control/index.js +19 -28
  20. package/lib/room-control/room-control-factory.js +1 -2
  21. package/lib/room-control/room-session/index.js +39 -46
  22. package/lib/room-control/shared-cache.js +29 -36
  23. package/lib/room-control/sharing-control/index.d.ts +1 -1
  24. package/lib/room-control/sharing-control/index.js +34 -42
  25. package/lib/room-control/stream-control/index.js +191 -195
  26. package/lib/room-control/stream-control/type.d.ts +1 -1
  27. package/lib/room-control/stt-control/de-compress-gzip.js +0 -10
  28. package/lib/room-control/stt-control/index.js +95 -98
  29. package/lib/room-control/stt-control/type.d.ts +1 -1
  30. package/lib/room-control/user-control/index.js +136 -143
  31. package/lib/room-control/waitingroom-control/index.js +9 -14
  32. package/lib/room-control/whiteboard-control/utils.js +2 -4
  33. package/lib/room-control/whiteboard-control-v1/board-subwindow.js +1 -2
  34. package/lib/room-control/whiteboard-control-v1/board-window.js +88 -99
  35. package/lib/room-control/whiteboard-control-v1/factory.js +4 -7
  36. package/lib/room-control/whiteboard-control-v1/index.js +28 -40
  37. package/lib/room-control/whiteboard-control-v1/mount-manager.js +2 -4
  38. package/lib/room-control/whiteboard-control-v1/utils.js +14 -17
  39. package/lib/room-control/whiteboard-control-v2/annotation-control/control.js +4 -6
  40. package/lib/room-control/whiteboard-control-v2/annotation-control/factory.js +5 -10
  41. package/lib/room-control/whiteboard-control-v2/base/index.js +34 -41
  42. package/lib/room-control/whiteboard-control-v2/base/main-window.js +24 -29
  43. package/lib/room-control/whiteboard-control-v2/utils.js +6 -7
  44. package/lib/room-control/whiteboard-control-v2/whiteboard-control/control.d.ts +0 -1
  45. package/lib/room-control/whiteboard-control-v2/whiteboard-control/control.js +23 -34
  46. package/lib/room-control/whiteboard-control-v2/whiteboard-control/factory.js +7 -14
  47. package/lib/room-router/index.js +47 -53
  48. package/lib/room-router/type.d.ts +2 -2
  49. package/lib/service/api.js +227 -250
  50. package/lib/utilities/collection.js +2 -3
  51. package/lib/utilities/error-helpers.js +27 -34
  52. package/lib/utilities/error.js +8 -9
  53. package/lib/utilities/join-helper.js +25 -32
  54. package/lib/utilities/logger.js +3 -6
  55. package/lib/utilities/parameters.js +4 -8
  56. package/lib/utilities/retry-helpers.js +0 -1
  57. package/lib/utilities/stream.js +11 -16
  58. package/lib/utilities/user.js +3 -4
  59. package/lib/utilities/validate-params.js +1 -2
  60. package/package.json +5 -6
@@ -1,30 +1,22 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.array.push.js");
4
- require("core-js/modules/esnext.iterator.filter.js");
5
- require("core-js/modules/esnext.iterator.for-each.js");
6
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
7
3
  Object.defineProperty(exports, "__esModule", {
8
4
  value: true
9
5
  });
10
6
  exports.FcrCoreServiceApi = void 0;
11
7
  require("core-js/modules/esnext.iterator.constructor.js");
12
8
  require("core-js/modules/esnext.iterator.map.js");
13
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
9
  var _imports = require("../imports");
15
10
  var _type = require("../room-control/privilege-control/type");
16
11
  var _type2 = require("../room-control/user-control/type");
17
12
  var _logger = require("../utilities/logger");
18
- 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; }
19
- 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; }
20
13
  class FcrCoreServiceApi {
21
- constructor(_client, appId, region) {
22
- let pathIncludeRegion = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
23
- (0, _defineProperty2.default)(this, "logger", (0, _logger.getLogger)());
14
+ logger = (0, _logger.getLogger)();
15
+ constructor(_client, appId, region, pathIncludeRegion = true) {
24
16
  this._client = _client;
25
- let pathPrefix = "/conference/apps/".concat(appId);
17
+ let pathPrefix = `/conference/apps/${appId}`;
26
18
  if (pathIncludeRegion) {
27
- pathPrefix = "/".concat((0, _imports.toLower)(region)).concat(pathPrefix);
19
+ pathPrefix = `/${(0, _imports.toLower)(region)}${pathPrefix}`;
28
20
  }
29
21
  this.logger.info('[FcrCoreServiceApi] set path prefix for Core Service API:', pathPrefix);
30
22
  this._pathPrefix = pathPrefix;
@@ -38,7 +30,7 @@ class FcrCoreServiceApi {
38
30
  const {
39
31
  data
40
32
  } = await this._client.fetch({
41
- path: "/v2/rooms/".concat(opts.roomId, "/groups"),
33
+ path: `/v2/rooms/${opts.roomId}/groups`,
42
34
  method: 'PUT',
43
35
  data: {
44
36
  groups: params.map(group => {
@@ -61,7 +53,7 @@ class FcrCoreServiceApi {
61
53
  const {
62
54
  data
63
55
  } = await this._client.fetch({
64
- path: "/v2/rooms/".concat(opts.roomId, "/groups/info"),
56
+ path: `/v2/rooms/${opts.roomId}/groups/info`,
65
57
  method: 'PATCH',
66
58
  data: {
67
59
  groups: params.map(group => {
@@ -77,7 +69,7 @@ class FcrCoreServiceApi {
77
69
  const {
78
70
  data
79
71
  } = await this._client.fetch({
80
- path: "/v2/rooms/".concat(opts.roomId, "/groups/states/1"),
72
+ path: `/v2/rooms/${opts.roomId}/groups/states/1`,
81
73
  method: 'DELETE',
82
74
  data: {
83
75
  removeGroupUuids: groupIds
@@ -88,7 +80,7 @@ class FcrCoreServiceApi {
88
80
  const {
89
81
  data
90
82
  } = await this._client.fetch({
91
- path: "/v2/rooms/".concat(opts.roomId, "/groups/all"),
83
+ path: `/v2/rooms/${opts.roomId}/groups/all`,
92
84
  method: 'DELETE'
93
85
  });
94
86
  }
@@ -96,7 +88,7 @@ class FcrCoreServiceApi {
96
88
  const {
97
89
  data
98
90
  } = await this._client.fetch({
99
- path: "/v2/rooms/".concat(opts.roomId, "/groups/users"),
91
+ path: `/v2/rooms/${opts.roomId}/groups/users`,
100
92
  method: 'PATCH',
101
93
  data: {
102
94
  groups: [{
@@ -111,7 +103,7 @@ class FcrCoreServiceApi {
111
103
  const {
112
104
  data
113
105
  } = await this._client.fetch({
114
- path: "/v2/rooms/".concat(opts.roomId, "/groups/users"),
106
+ path: `/v2/rooms/${opts.roomId}/groups/users`,
115
107
  method: 'PATCH',
116
108
  data: {
117
109
  groups: [{
@@ -126,7 +118,7 @@ class FcrCoreServiceApi {
126
118
  const {
127
119
  data
128
120
  } = await this._client.fetch({
129
- path: "/v2/rooms/".concat(opts.roomId, "/groups/users"),
121
+ path: `/v2/rooms/${opts.roomId}/groups/users`,
130
122
  method: 'PATCH',
131
123
  data: {
132
124
  groups: [{
@@ -140,7 +132,7 @@ class FcrCoreServiceApi {
140
132
  /*** merge audio ****/
141
133
  async mergeAudioStream(userId, opts) {
142
134
  const res = await this._client.fetch({
143
- path: "/v1/rooms/".concat(opts.roomId, "/users/").concat(userId, "/call/merge"),
135
+ path: `/v1/rooms/${opts.roomId}/users/${userId}/call/merge`,
144
136
  method: 'PUT',
145
137
  data: {}
146
138
  });
@@ -149,7 +141,7 @@ class FcrCoreServiceApi {
149
141
  /*** split audio ****/
150
142
  async splitAudioStream(userId, opts) {
151
143
  const res = await this._client.fetch({
152
- path: "/v1/rooms/".concat(opts.roomId, "/users/").concat(userId, "/call/split"),
144
+ path: `/v1/rooms/${opts.roomId}/users/${userId}/call/split`,
153
145
  method: 'PUT',
154
146
  data: {}
155
147
  });
@@ -162,7 +154,7 @@ class FcrCoreServiceApi {
162
154
  body.duration = -1;
163
155
  }
164
156
  return this._client.fetch({
165
- path: "/v1/rooms/".concat(opts.roomId, "/users/").concat(userId, "/ban/").concat(type === _type2.FcrUserKickedOutType.Forever ? 1 : 0),
157
+ path: `/v1/rooms/${opts.roomId}/users/${userId}/ban/${type === _type2.FcrUserKickedOutType.Forever ? 1 : 0}`,
166
158
  method: 'PUT',
167
159
  data: body
168
160
  });
@@ -177,7 +169,7 @@ class FcrCoreServiceApi {
177
169
  const {
178
170
  data
179
171
  } = await this._client.fetch({
180
- path: "/v1/rooms/".concat(opts.roomId, "/users/ban/").concat(type === _type2.FcrUserKickedOutType.Forever ? 1 : 0),
172
+ path: `/v1/rooms/${opts.roomId}/users/ban/${type === _type2.FcrUserKickedOutType.Forever ? 1 : 0}`,
181
173
  method: 'PUT',
182
174
  data: body
183
175
  });
@@ -192,7 +184,7 @@ class FcrCoreServiceApi {
192
184
  const {
193
185
  data
194
186
  } = await this._client.fetch({
195
- path: "/v1/rooms/".concat(opts.roomId, "/users/ban/").concat(type === _type2.FcrUserKickedOutType.Forever ? 1 : 0),
187
+ path: `/v1/rooms/${opts.roomId}/users/ban/${type === _type2.FcrUserKickedOutType.Forever ? 1 : 0}`,
196
188
  method: 'PUT',
197
189
  data: body
198
190
  });
@@ -201,25 +193,25 @@ class FcrCoreServiceApi {
201
193
  /** room control **/
202
194
  async startRoom(roomId) {
203
195
  return this._client.fetch({
204
- path: "/v1/rooms/".concat(roomId, "/states/1"),
196
+ path: `/v1/rooms/${roomId}/states/1`,
205
197
  method: 'PUT'
206
198
  });
207
199
  }
208
200
  async endRoom(roomId) {
209
201
  return this._client.fetch({
210
- path: "/v1/rooms/".concat(roomId, "/states/2"),
202
+ path: `/v1/rooms/${roomId}/states/2`,
211
203
  method: 'PUT'
212
204
  });
213
205
  }
214
206
  async closeRoom(roomId) {
215
207
  return this._client.fetch({
216
- path: "/v1/rooms/".concat(roomId, "/states/3"),
208
+ path: `/v1/rooms/${roomId}/states/3`,
217
209
  method: 'PUT'
218
210
  });
219
211
  }
220
212
  async startCloudRecording(config, roomId) {
221
213
  return this._client.fetch({
222
- path: "/v1/rooms/".concat(roomId, "/records/states/1"),
214
+ path: `/v1/rooms/${roomId}/records/states/1`,
223
215
  method: 'PUT',
224
216
  data: {
225
217
  mode: 'web',
@@ -236,7 +228,7 @@ class FcrCoreServiceApi {
236
228
  }
237
229
  async pauseCloudRecording(roomId) {
238
230
  return this._client.fetch({
239
- path: "/v1/rooms/".concat(roomId, "/records/states/1"),
231
+ path: `/v1/rooms/${roomId}/records/states/1`,
240
232
  method: 'PATCH',
241
233
  data: {
242
234
  mode: 'web',
@@ -248,7 +240,7 @@ class FcrCoreServiceApi {
248
240
  }
249
241
  async resumeCloudRecording(roomId) {
250
242
  return this._client.fetch({
251
- path: "/v1/rooms/".concat(roomId, "/records/states/1"),
243
+ path: `/v1/rooms/${roomId}/records/states/1`,
252
244
  method: 'PATCH',
253
245
  data: {
254
246
  webRecordConfig: {
@@ -259,13 +251,13 @@ class FcrCoreServiceApi {
259
251
  }
260
252
  async stopCloudRecording(roomId) {
261
253
  return this._client.fetch({
262
- path: "/v1/rooms/".concat(roomId, "/records/states/0"),
254
+ path: `/v1/rooms/${roomId}/records/states/0`,
263
255
  method: 'PUT'
264
256
  });
265
257
  }
266
258
  async setCloudRecordingReady(roomId) {
267
259
  return this._client.fetch({
268
- path: "/v1/rooms/".concat(roomId, "/records/ready"),
260
+ path: `/v1/rooms/${roomId}/records/ready`,
269
261
  method: 'PUT'
270
262
  });
271
263
  }
@@ -288,7 +280,7 @@ class FcrCoreServiceApi {
288
280
  /** room session */
289
281
  async updateRoomSession(params) {
290
282
  return this._client.fetch({
291
- path: "/v1/users/".concat(params.userId, "/sessions/").concat(params.sessionKey, "/").concat(params.sessionId),
283
+ path: `/v1/users/${params.userId}/sessions/${params.sessionKey}/${params.sessionId}`,
292
284
  method: 'PUT',
293
285
  data: {
294
286
  target: 1,
@@ -301,7 +293,7 @@ class FcrCoreServiceApi {
301
293
  }
302
294
  async deleteRoomSession(params) {
303
295
  return this._client.fetch({
304
- path: "/v1/users/".concat(params.userId, "/sessions/").concat(params.sessionKey, "/").concat(params.sessionId),
296
+ path: `/v1/users/${params.userId}/sessions/${params.sessionKey}/${params.sessionId}`,
305
297
  method: 'DELETE',
306
298
  data: {
307
299
  target: params.target,
@@ -314,7 +306,7 @@ class FcrCoreServiceApi {
314
306
  /** peer session */
315
307
  async updatePeerSession(params) {
316
308
  return this._client.fetch({
317
- path: "/v1/users/".concat(params.userId, "/sessions/").concat(params.sessionKey, "/").concat(params.sessionId),
309
+ path: `/v1/users/${params.userId}/sessions/${params.sessionKey}/${params.sessionId}`,
318
310
  method: 'PUT',
319
311
  data: {
320
312
  target: 2,
@@ -326,7 +318,7 @@ class FcrCoreServiceApi {
326
318
  }
327
319
  async deletePeerSession(params) {
328
320
  return this._client.fetch({
329
- path: "/v1/users/".concat(params.userId, "/sessions/").concat(params.sessionKey, "/").concat(params.sessionId),
321
+ path: `/v1/users/${params.userId}/sessions/${params.sessionKey}/${params.sessionId}`,
330
322
  method: 'DELETE',
331
323
  data: {
332
324
  target: 2,
@@ -341,7 +333,7 @@ class FcrCoreServiceApi {
341
333
  data,
342
334
  ts
343
335
  } = await this._client.fetch({
344
- path: "/v1/rooms/".concat(params.roomId, "/users/").concat(params.userId, "/entry"),
336
+ path: `/v1/rooms/${params.roomId}/users/${params.userId}/entry`,
345
337
  method: 'PUT',
346
338
  data: {
347
339
  password: params.password,
@@ -368,7 +360,7 @@ class FcrCoreServiceApi {
368
360
  data,
369
361
  ts
370
362
  } = await this._client.fetch({
371
- path: "/v1/rooms/".concat(params.roomId, "/users/").concat(params.userId, "/internal/entry"),
363
+ path: `/v1/rooms/${params.roomId}/users/${params.userId}/internal/entry`,
372
364
  method: 'PUT',
373
365
  data: {
374
366
  password: params.password,
@@ -397,7 +389,7 @@ class FcrCoreServiceApi {
397
389
  userId
398
390
  } = params;
399
391
  const res = await this._client.fetch({
400
- path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/info"),
392
+ path: `/v1/rooms/${roomId}/users/${userId}/info`,
401
393
  method: 'PATCH',
402
394
  data: {
403
395
  userName
@@ -405,39 +397,37 @@ class FcrCoreServiceApi {
405
397
  });
406
398
  return res.data;
407
399
  }
408
- async updateUserProperties(_ref) {
409
- let {
410
- roomId,
411
- userUuid,
412
- properties,
413
- increments,
414
- cause
415
- } = _ref;
400
+ async updateUserProperties({
401
+ roomId,
402
+ userUuid,
403
+ properties,
404
+ increments,
405
+ cause
406
+ }) {
416
407
  const data = {
417
408
  properties,
418
409
  cause,
419
410
  increments
420
411
  };
421
412
  const res = await this._client.fetch({
422
- path: "/v1/rooms/".concat(roomId, "/users/").concat(userUuid, "/properties"),
413
+ path: `/v1/rooms/${roomId}/users/${userUuid}/properties`,
423
414
  method: 'PUT',
424
415
  data: data
425
416
  });
426
417
  return res.data;
427
418
  }
428
- async deleteUserProperties(_ref2) {
429
- let {
430
- roomId,
431
- userUuid,
432
- properties,
433
- cause
434
- } = _ref2;
419
+ async deleteUserProperties({
420
+ roomId,
421
+ userUuid,
422
+ properties,
423
+ cause
424
+ }) {
435
425
  const data = {
436
426
  properties,
437
427
  cause
438
428
  };
439
429
  const res = await this._client.fetch({
440
- path: "/v1/rooms/".concat(roomId, "/users/").concat(userUuid, "/properties"),
430
+ path: `/v1/rooms/${roomId}/users/${userUuid}/properties`,
441
431
  method: 'DELETE',
442
432
  data: {
443
433
  users: data
@@ -445,37 +435,35 @@ class FcrCoreServiceApi {
445
435
  });
446
436
  return res.data;
447
437
  }
448
- async updateRoomProperties(_ref3) {
449
- let {
450
- roomId,
451
- properties,
452
- increments,
453
- cause
454
- } = _ref3;
438
+ async updateRoomProperties({
439
+ roomId,
440
+ properties,
441
+ increments,
442
+ cause
443
+ }) {
455
444
  const data = {
456
445
  properties,
457
446
  cause,
458
447
  increments
459
448
  };
460
449
  const res = await this._client.fetch({
461
- path: "/v1/rooms/".concat(roomId, "/properties"),
450
+ path: `/v1/rooms/${roomId}/properties`,
462
451
  method: 'PUT',
463
452
  data: data
464
453
  });
465
454
  return res.data;
466
455
  }
467
- async deleteRoomProperties(_ref4) {
468
- let {
469
- roomId,
470
- properties,
471
- cause
472
- } = _ref4;
456
+ async deleteRoomProperties({
457
+ roomId,
458
+ properties,
459
+ cause
460
+ }) {
473
461
  const data = {
474
462
  properties,
475
463
  cause
476
464
  };
477
465
  const res = await this._client.fetch({
478
- path: "/v1/rooms/".concat(roomId, "/properties"),
466
+ path: `/v1/rooms/${roomId}/properties`,
479
467
  method: 'DELETE',
480
468
  data: data
481
469
  });
@@ -483,26 +471,25 @@ class FcrCoreServiceApi {
483
471
  }
484
472
  async getChatRoomToken(roomId, userId) {
485
473
  const res = await this._client.fetch({
486
- path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/widgets/easemobIM/token"),
474
+ path: `/v1/rooms/${roomId}/users/${userId}/widgets/easemobIM/token`,
487
475
  method: 'GET'
488
476
  });
489
477
  return res.data;
490
478
  }
491
479
  async getUserToken(userId) {
492
480
  const res = await this._client.fetch({
493
- path: "/v1/users/".concat(userId, "/widgets/easemobIM/token"),
481
+ path: `/v1/users/${userId}/widgets/easemobIM/token`,
494
482
  method: 'GET'
495
483
  });
496
484
  return res.data;
497
485
  }
498
- async enableLockedRoom(_ref5) {
499
- let {
500
- roomId,
501
- enable,
502
- targetRoles
503
- } = _ref5;
486
+ async enableLockedRoom({
487
+ roomId,
488
+ enable,
489
+ targetRoles
490
+ }) {
504
491
  const res = await this._client.fetch({
505
- path: "/v1/rooms/".concat(roomId, "/lock/").concat(enable ? 1 : 0),
492
+ path: `/v1/rooms/${roomId}/lock/${enable ? 1 : 0}`,
506
493
  method: 'PUT',
507
494
  data: {
508
495
  targetRoles: targetRoles.map(role => _type.FcrPrivilegeUserRoleToStringMap[role])
@@ -510,14 +497,13 @@ class FcrCoreServiceApi {
510
497
  });
511
498
  return res.data;
512
499
  }
513
- async enablePassword(_ref6) {
514
- let {
515
- roomId,
516
- enable,
517
- password
518
- } = _ref6;
500
+ async enablePassword({
501
+ roomId,
502
+ enable,
503
+ password
504
+ }) {
519
505
  const res = await this._client.fetch({
520
- path: "/v1/rooms/".concat(roomId, "/password/").concat(enable ? 1 : 0),
506
+ path: `/v1/rooms/${roomId}/password/${enable ? 1 : 0}`,
521
507
  method: 'PUT',
522
508
  data: {
523
509
  password
@@ -525,20 +511,19 @@ class FcrCoreServiceApi {
525
511
  });
526
512
  return res.data;
527
513
  }
528
- async enableWaitingRoom(_ref7) {
529
- let {
530
- roomId,
531
- enable
532
- } = _ref7;
514
+ async enableWaitingRoom({
515
+ roomId,
516
+ enable
517
+ }) {
533
518
  const res = await this._client.fetch({
534
- path: "/v1/rooms/".concat(roomId, "/waiting/").concat(enable ? 1 : 0),
519
+ path: `/v1/rooms/${roomId}/waiting/${enable ? 1 : 0}`,
535
520
  method: 'PUT'
536
521
  });
537
522
  return res.data;
538
523
  }
539
524
  async moveToWaitingRoomByUserIds(userIds, roomId) {
540
525
  const res = await this._client.fetch({
541
- path: "/v1/rooms/".concat(roomId, "/waiting/users"),
526
+ path: `/v1/rooms/${roomId}/waiting/users`,
542
527
  method: 'PUT',
543
528
  data: {
544
529
  toUserUuids: userIds
@@ -548,7 +533,7 @@ class FcrCoreServiceApi {
548
533
  }
549
534
  async moveToWaitingRoomByUserRoles(toRoles, roomId) {
550
535
  const res = await this._client.fetch({
551
- path: "/v1/rooms/".concat(roomId, "/waiting/users"),
536
+ path: `/v1/rooms/${roomId}/waiting/users`,
552
537
  method: 'PUT',
553
538
  data: {
554
539
  toRoles
@@ -558,7 +543,7 @@ class FcrCoreServiceApi {
558
543
  }
559
544
  async moveToMainRoomByUserIds(userIds, roomId) {
560
545
  const res = await this._client.fetch({
561
- path: "/v1/rooms/".concat(roomId, "/waiting/users"),
546
+ path: `/v1/rooms/${roomId}/waiting/users`,
562
547
  method: 'DELETE',
563
548
  data: {
564
549
  toUserUuids: userIds
@@ -568,7 +553,7 @@ class FcrCoreServiceApi {
568
553
  }
569
554
  async moveToMainRoomByUserRoles(toRoles, roomId) {
570
555
  const res = await this._client.fetch({
571
- path: "/v1/rooms/".concat(roomId, "/waiting/users"),
556
+ path: `/v1/rooms/${roomId}/waiting/users`,
572
557
  method: 'DELETE',
573
558
  data: {
574
559
  toRoles
@@ -576,21 +561,20 @@ class FcrCoreServiceApi {
576
561
  });
577
562
  return res.data;
578
563
  }
579
- async allowSendChat(_ref8) {
580
- let {
581
- roomId,
582
- enable,
583
- targetRoles,
584
- payload
585
- } = _ref8;
564
+ async allowSendChat({
565
+ roomId,
566
+ enable,
567
+ targetRoles,
568
+ payload
569
+ }) {
586
570
  const res = await this._client.fetch({
587
- path: "/v1/rooms/".concat(roomId, "/security/chat/").concat(enable ? 1 : 0),
571
+ path: `/v1/rooms/${roomId}/security/chat/${enable ? 1 : 0}`,
588
572
  method: 'PUT',
589
573
  data: {
590
574
  targetRoles,
591
575
  payload: {
592
- public: (payload === null || payload === void 0 ? void 0 : payload.public) === undefined ? undefined : payload.public ? 1 : 0,
593
- private: (payload === null || payload === void 0 ? void 0 : payload.private) === undefined ? undefined : {
576
+ public: payload?.public === undefined ? undefined : payload.public ? 1 : 0,
577
+ private: payload?.private === undefined ? undefined : {
594
578
  host: payload.private.host ? 1 : 0,
595
579
  cohost: payload.private.cohost ? 1 : 0,
596
580
  participant: payload.private.participant ? 1 : 0
@@ -600,14 +584,13 @@ class FcrCoreServiceApi {
600
584
  });
601
585
  return res.data;
602
586
  }
603
- async allowChangeName(_ref9) {
604
- let {
605
- roomId,
606
- enable,
607
- targetRoles
608
- } = _ref9;
587
+ async allowChangeName({
588
+ roomId,
589
+ enable,
590
+ targetRoles
591
+ }) {
609
592
  const res = await this._client.fetch({
610
- path: "/v1/rooms/".concat(roomId, "/security/changeName/").concat(enable ? 1 : 0),
593
+ path: `/v1/rooms/${roomId}/security/changeName/${enable ? 1 : 0}`,
611
594
  method: 'PUT',
612
595
  data: {
613
596
  targetRoles
@@ -615,14 +598,13 @@ class FcrCoreServiceApi {
615
598
  });
616
599
  return res.data;
617
600
  }
618
- async allowStartAudio(_ref0) {
619
- let {
620
- roomId,
621
- enable,
622
- targetRoles
623
- } = _ref0;
601
+ async allowStartAudio({
602
+ roomId,
603
+ enable,
604
+ targetRoles
605
+ }) {
624
606
  const res = await this._client.fetch({
625
- path: "/v1/rooms/".concat(roomId, "/security/unmuteAudio/").concat(enable ? 1 : 0),
607
+ path: `/v1/rooms/${roomId}/security/unmuteAudio/${enable ? 1 : 0}`,
626
608
  method: 'PUT',
627
609
  data: {
628
610
  targetRoles
@@ -638,11 +620,13 @@ class FcrCoreServiceApi {
638
620
  payload
639
621
  } = params;
640
622
  const res = await this._client.fetch({
641
- path: "/v1/rooms/".concat(roomId, "/security/watermark/").concat(enable ? 1 : 0),
623
+ path: `/v1/rooms/${roomId}/security/watermark/${enable ? 1 : 0}`,
642
624
  method: 'PUT',
643
625
  data: {
644
626
  targetRoles,
645
- payload: _objectSpread({}, payload)
627
+ payload: {
628
+ ...payload
629
+ }
646
630
  }
647
631
  });
648
632
  return res.data;
@@ -654,7 +638,7 @@ class FcrCoreServiceApi {
654
638
  targetRoles
655
639
  } = params;
656
640
  const res = await this._client.fetch({
657
- path: "/v1/rooms/".concat(roomId, "/security/changeName/").concat(enable ? 1 : 0),
641
+ path: `/v1/rooms/${roomId}/security/changeName/${enable ? 1 : 0}`,
658
642
  method: 'PUT',
659
643
  data: {
660
644
  targetRoles
@@ -662,14 +646,13 @@ class FcrCoreServiceApi {
662
646
  });
663
647
  return res.data;
664
648
  }
665
- async allowJoinWithPromptSound(_ref1) {
666
- let {
667
- roomId,
668
- enable,
669
- targetRoles
670
- } = _ref1;
649
+ async allowJoinWithPromptSound({
650
+ roomId,
651
+ enable,
652
+ targetRoles
653
+ }) {
671
654
  const res = await this._client.fetch({
672
- path: "/v1/rooms/".concat(roomId, "/security/joinWithPromptSound/").concat(enable ? 1 : 0),
655
+ path: `/v1/rooms/${roomId}/security/joinWithPromptSound/${enable ? 1 : 0}`,
673
656
  method: 'PUT',
674
657
  data: {
675
658
  targetRoles
@@ -677,14 +660,13 @@ class FcrCoreServiceApi {
677
660
  });
678
661
  return res.data;
679
662
  }
680
- async allowStartVideo(_ref10) {
681
- let {
682
- roomId,
683
- enable,
684
- targetRoles
685
- } = _ref10;
663
+ async allowStartVideo({
664
+ roomId,
665
+ enable,
666
+ targetRoles
667
+ }) {
686
668
  const res = await this._client.fetch({
687
- path: "/v1/rooms/".concat(roomId, "/security/openVideo/").concat(enable ? 1 : 0),
669
+ path: `/v1/rooms/${roomId}/security/openVideo/${enable ? 1 : 0}`,
688
670
  method: 'PUT',
689
671
  data: {
690
672
  targetRoles
@@ -692,14 +674,13 @@ class FcrCoreServiceApi {
692
674
  });
693
675
  return res.data;
694
676
  }
695
- async allowJoinWithMuteAudio(_ref11) {
696
- let {
697
- roomId,
698
- enable,
699
- targetRoles
700
- } = _ref11;
677
+ async allowJoinWithMuteAudio({
678
+ roomId,
679
+ enable,
680
+ targetRoles
681
+ }) {
701
682
  const res = await this._client.fetch({
702
- path: "/v1/rooms/".concat(roomId, "/security/joinWithMuteAudio/").concat(enable ? 1 : 0),
683
+ path: `/v1/rooms/${roomId}/security/joinWithMuteAudio/${enable ? 1 : 0}`,
703
684
  method: 'PUT',
704
685
  data: {
705
686
  targetRoles
@@ -707,14 +688,13 @@ class FcrCoreServiceApi {
707
688
  });
708
689
  return res.data;
709
690
  }
710
- async allowJoinWithMutedVideo(_ref12) {
711
- let {
712
- roomId,
713
- enable,
714
- targetRoles
715
- } = _ref12;
691
+ async allowJoinWithMutedVideo({
692
+ roomId,
693
+ enable,
694
+ targetRoles
695
+ }) {
716
696
  const res = await this._client.fetch({
717
- path: "/v1/rooms/".concat(roomId, "/security/joinWithCloseVideo/").concat(enable ? 1 : 0),
697
+ path: `/v1/rooms/${roomId}/security/joinWithCloseVideo/${enable ? 1 : 0}`,
718
698
  method: 'PUT',
719
699
  data: {
720
700
  targetRoles
@@ -722,15 +702,14 @@ class FcrCoreServiceApi {
722
702
  });
723
703
  return res.data;
724
704
  }
725
- async updateUserRole(_ref13) {
726
- let {
727
- roomId,
728
- localRole,
729
- remoteRole,
730
- userId
731
- } = _ref13;
705
+ async updateUserRole({
706
+ roomId,
707
+ localRole,
708
+ remoteRole,
709
+ userId
710
+ }) {
732
711
  const res = await this._client.fetch({
733
- path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/role"),
712
+ path: `/v1/rooms/${roomId}/users/${userId}/role`,
734
713
  method: 'PUT',
735
714
  data: {
736
715
  remoteRole,
@@ -739,15 +718,14 @@ class FcrCoreServiceApi {
739
718
  });
740
719
  return res.data;
741
720
  }
742
- async revokeUserRole(_ref14) {
743
- let {
744
- roomId,
745
- remoteRole,
746
- localRole,
747
- userId
748
- } = _ref14;
721
+ async revokeUserRole({
722
+ roomId,
723
+ remoteRole,
724
+ localRole,
725
+ userId
726
+ }) {
749
727
  const res = await this._client.fetch({
750
- path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/role"),
728
+ path: `/v1/rooms/${roomId}/users/${userId}/role`,
751
729
  method: 'DELETE',
752
730
  data: {
753
731
  remoteRole,
@@ -756,14 +734,13 @@ class FcrCoreServiceApi {
756
734
  });
757
735
  return res.data;
758
736
  }
759
- async claimHost(_ref15) {
760
- let {
761
- roomId,
762
- userId,
763
- hostKey
764
- } = _ref15;
737
+ async claimHost({
738
+ roomId,
739
+ userId,
740
+ hostKey
741
+ }) {
765
742
  const res = await this._client.fetch({
766
- path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/claim/host"),
743
+ path: `/v1/rooms/${roomId}/users/${userId}/claim/host`,
767
744
  method: 'POST',
768
745
  data: {
769
746
  hostKey
@@ -773,14 +750,14 @@ class FcrCoreServiceApi {
773
750
  }
774
751
  async stopLiveStreaming(roomId) {
775
752
  const res = await this._client.fetch({
776
- path: "/v1/rooms/".concat(roomId, "/live/states/0"),
753
+ path: `/v1/rooms/${roomId}/live/states/0`,
777
754
  method: 'PUT'
778
755
  });
779
756
  return res;
780
757
  }
781
758
  async updateLiveStreamingLayout(roomId, layoutType) {
782
759
  const res = await this._client.fetch({
783
- path: "/v1/rooms/".concat(roomId, "/live/states/1"),
760
+ path: `/v1/rooms/${roomId}/live/states/1`,
784
761
  method: 'PATCH',
785
762
  data: {
786
763
  layoutType: layoutType
@@ -790,7 +767,7 @@ class FcrCoreServiceApi {
790
767
  }
791
768
  async startLiveStreaming(roomId, data) {
792
769
  const res = await this._client.fetch({
793
- path: "/v1/rooms/".concat(roomId, "/live/states/1"),
770
+ path: `/v1/rooms/${roomId}/live/states/1`,
794
771
  method: 'PUT',
795
772
  data: {
796
773
  streamUrl: data.pushStreamingUrl,
@@ -801,14 +778,13 @@ class FcrCoreServiceApi {
801
778
  });
802
779
  return res;
803
780
  }
804
- async callIp(_ref16) {
805
- let {
806
- roomId,
807
- callType,
808
- ipAddress
809
- } = _ref16;
781
+ async callIp({
782
+ roomId,
783
+ callType,
784
+ ipAddress
785
+ }) {
810
786
  const res = await this._client.fetch({
811
- path: "/v1/rooms/".concat(roomId, "/call/").concat(callType),
787
+ path: `/v1/rooms/${roomId}/call/${callType}`,
812
788
  method: 'POST',
813
789
  data: {
814
790
  ipAddress
@@ -816,15 +792,14 @@ class FcrCoreServiceApi {
816
792
  });
817
793
  return res;
818
794
  }
819
- async callPstn(_ref17) {
820
- let {
821
- roomId,
822
- userName,
823
- userId,
824
- callNumber
825
- } = _ref17;
795
+ async callPstn({
796
+ roomId,
797
+ userName,
798
+ userId,
799
+ callNumber
800
+ }) {
826
801
  const res = await this._client.fetch({
827
- path: "/v1/rooms/".concat(roomId, "/call/pstn"),
802
+ path: `/v1/rooms/${roomId}/call/pstn`,
828
803
  method: 'POST',
829
804
  data: {
830
805
  callNumber,
@@ -834,14 +809,13 @@ class FcrCoreServiceApi {
834
809
  });
835
810
  return res;
836
811
  }
837
- async hangup(_ref18) {
838
- let {
839
- roomId,
840
- userId,
841
- callId
842
- } = _ref18;
812
+ async hangup({
813
+ roomId,
814
+ userId,
815
+ callId
816
+ }) {
843
817
  const res = await this._client.fetch({
844
- path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/call/").concat(callId),
818
+ path: `/v1/rooms/${roomId}/users/${userId}/call/${callId}`,
845
819
  method: 'DELETE'
846
820
  });
847
821
  return res;
@@ -850,13 +824,12 @@ class FcrCoreServiceApi {
850
824
  /**
851
825
  * @description 获取白板信息
852
826
  */
853
- async getWhiteboardToken(_ref19) {
854
- let {
855
- roomId,
856
- userId
857
- } = _ref19;
827
+ async getWhiteboardToken({
828
+ roomId,
829
+ userId
830
+ }) {
858
831
  return this._client.fetch({
859
- path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/widgets/netlessBoard/token"),
832
+ path: `/v1/rooms/${roomId}/users/${userId}/widgets/netlessBoard/token`,
860
833
  method: 'GET'
861
834
  });
862
835
  }
@@ -864,13 +837,12 @@ class FcrCoreServiceApi {
864
837
  /**
865
838
  * @description 获取批注token
866
839
  */
867
- async getAnnotationToken(_ref20) {
868
- let {
869
- roomId,
870
- userId
871
- } = _ref20;
840
+ async getAnnotationToken({
841
+ roomId,
842
+ userId
843
+ }) {
872
844
  return this._client.fetch({
873
- path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/widgets/annotation/token"),
845
+ path: `/v1/rooms/${roomId}/users/${userId}/widgets/annotation/token`,
874
846
  method: 'GET'
875
847
  });
876
848
  }
@@ -880,7 +852,7 @@ class FcrCoreServiceApi {
880
852
  */
881
853
  async toggleAnnotationActivityState(roomId, state) {
882
854
  return this._client.fetch({
883
- path: "/v1/rooms/".concat(roomId, "/widgets/annotation/states/").concat(state),
855
+ path: `/v1/rooms/${roomId}/widgets/annotation/states/${state}`,
884
856
  method: 'PUT'
885
857
  });
886
858
  }
@@ -890,7 +862,7 @@ class FcrCoreServiceApi {
890
862
  */
891
863
  async syncScreenShareOwnerAnnotationOpenDone(roomId) {
892
864
  return this._client.fetch({
893
- path: "/v1/rooms/".concat(roomId, "/widgets/annotation/states/1"),
865
+ path: `/v1/rooms/${roomId}/widgets/annotation/states/1`,
894
866
  method: 'PUT',
895
867
  retryFallbackDomainsWhenFail: true
896
868
  });
@@ -907,11 +879,13 @@ class FcrCoreServiceApi {
907
879
  payload
908
880
  } = params;
909
881
  return this._client.fetch({
910
- path: "/v1/rooms/".concat(roomId, "/security/sharing/").concat(enable ? 1 : 0),
882
+ path: `/v1/rooms/${roomId}/security/sharing/${enable ? 1 : 0}`,
911
883
  method: 'PUT',
912
884
  data: {
913
885
  targetRoles,
914
- payload: _objectSpread({}, payload)
886
+ payload: {
887
+ ...payload
888
+ }
915
889
  }
916
890
  });
917
891
  }
@@ -927,11 +901,13 @@ class FcrCoreServiceApi {
927
901
  payload
928
902
  } = params;
929
903
  return this._client.fetch({
930
- path: "/v1/rooms/".concat(roomId, "/security/sharing/users/").concat(enable ? 1 : 0),
904
+ path: `/v1/rooms/${roomId}/security/sharing/users/${enable ? 1 : 0}`,
931
905
  method: 'PUT',
932
906
  data: {
933
907
  toUserUuids,
934
- payload: _objectSpread({}, payload)
908
+ payload: {
909
+ ...payload
910
+ }
935
911
  }
936
912
  });
937
913
  }
@@ -947,7 +923,7 @@ class FcrCoreServiceApi {
947
923
  data
948
924
  } = params;
949
925
  return this._client.fetch({
950
- path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/streams/screen/states/").concat(enable ? 1 : 0),
926
+ path: `/v1/rooms/${roomId}/users/${userId}/streams/screen/states/${enable ? 1 : 0}`,
951
927
  method: 'PUT',
952
928
  data
953
929
  });
@@ -958,7 +934,7 @@ class FcrCoreServiceApi {
958
934
  */
959
935
  async toggleWhiteboardActivityState(roomId, state) {
960
936
  return this._client.fetch({
961
- path: "/v1/rooms/".concat(roomId, "/widgets/netlessBoard/states/").concat(state),
937
+ path: `/v1/rooms/${roomId}/widgets/netlessBoard/states/${state}`,
962
938
  method: 'PUT'
963
939
  });
964
940
  }
@@ -974,11 +950,13 @@ class FcrCoreServiceApi {
974
950
  targetRoles
975
951
  } = params;
976
952
  return this._client.fetch({
977
- path: "/v1/rooms/".concat(roomId, "/security/annotation/", 1),
953
+ path: `/v1/rooms/${roomId}/security/annotation/${1}`,
978
954
  method: 'PUT',
979
955
  data: {
980
956
  targetRoles,
981
- payload: _objectSpread({}, payload)
957
+ payload: {
958
+ ...payload
959
+ }
982
960
  }
983
961
  });
984
962
  }
@@ -992,7 +970,7 @@ class FcrCoreServiceApi {
992
970
  backgroundColor
993
971
  } = params;
994
972
  return this._client.fetch({
995
- path: "/v1/rooms/".concat(roomId, "/widgets/netlessBoard/info"),
973
+ path: `/v1/rooms/${roomId}/widgets/netlessBoard/info`,
996
974
  method: 'PUT',
997
975
  data: {
998
976
  backgroundColor
@@ -1006,7 +984,7 @@ class FcrCoreServiceApi {
1006
984
  config
1007
985
  } = params;
1008
986
  const res = this._client.fetch({
1009
- path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/streams/screen/states/1"),
987
+ path: `/v1/rooms/${roomId}/users/${userId}/streams/screen/states/1`,
1010
988
  method: 'PUT',
1011
989
  data: config
1012
990
  });
@@ -1018,7 +996,7 @@ class FcrCoreServiceApi {
1018
996
  userId
1019
997
  } = params;
1020
998
  const res = this._client.fetch({
1021
- path: "/v1/rooms/".concat(roomId, "/users/").concat(userId, "/streams/screen/states/0"),
999
+ path: `/v1/rooms/${roomId}/users/${userId}/streams/screen/states/0`,
1022
1000
  method: 'PUT'
1023
1001
  });
1024
1002
  return res;
@@ -1029,7 +1007,7 @@ class FcrCoreServiceApi {
1029
1007
  data
1030
1008
  } = params;
1031
1009
  const res = this._client.fetch({
1032
- path: "/v1/rooms/".concat(roomId, "/interpreter/states/1"),
1010
+ path: `/v1/rooms/${roomId}/interpreter/states/1`,
1033
1011
  method: 'PUT',
1034
1012
  data
1035
1013
  });
@@ -1043,7 +1021,7 @@ class FcrCoreServiceApi {
1043
1021
  roomId
1044
1022
  } = params;
1045
1023
  const res = this._client.fetch({
1046
- path: "/v1/rooms/".concat(roomId, "/interpreter/states/0"),
1024
+ path: `/v1/rooms/${roomId}/interpreter/states/0`,
1047
1025
  method: 'PUT',
1048
1026
  data: {}
1049
1027
  });
@@ -1051,7 +1029,7 @@ class FcrCoreServiceApi {
1051
1029
  }
1052
1030
  async createStreamBatch(roomUuid, streams) {
1053
1031
  return await this._client.fetch({
1054
- path: "/v1/rooms/".concat(roomUuid, "/streams"),
1032
+ path: `/v1/rooms/${roomUuid}/streams`,
1055
1033
  method: 'POST',
1056
1034
  data: {
1057
1035
  streams
@@ -1060,24 +1038,23 @@ class FcrCoreServiceApi {
1060
1038
  }
1061
1039
  async updateStreamBatch(roomUuid, streams) {
1062
1040
  return await this._client.fetch({
1063
- path: "/v1/rooms/".concat(roomUuid, "/streams"),
1041
+ path: `/v1/rooms/${roomUuid}/streams`,
1064
1042
  method: 'PUT',
1065
1043
  data: {
1066
1044
  streams
1067
1045
  }
1068
1046
  });
1069
1047
  }
1070
- async updateStreamBatchByCondition(_ref21) {
1071
- let {
1072
- roomUuid,
1073
- videoState,
1074
- audioState,
1075
- includeRoles,
1076
- excludeRoles,
1077
- condition
1078
- } = _ref21;
1048
+ async updateStreamBatchByCondition({
1049
+ roomUuid,
1050
+ videoState,
1051
+ audioState,
1052
+ includeRoles,
1053
+ excludeRoles,
1054
+ condition
1055
+ }) {
1079
1056
  return await this._client.fetch({
1080
- path: "/v1/rooms/".concat(roomUuid, "/conditions/streams"),
1057
+ path: `/v1/rooms/${roomUuid}/conditions/streams`,
1081
1058
  method: 'PUT',
1082
1059
  data: {
1083
1060
  includeRoles,
@@ -1092,7 +1069,7 @@ class FcrCoreServiceApi {
1092
1069
  }
1093
1070
  async deleteStreamBatch(roomUuid, streams) {
1094
1071
  return await this._client.fetch({
1095
- path: "/v1/rooms/".concat(roomUuid, "/streams"),
1072
+ path: `/v1/rooms/${roomUuid}/streams`,
1096
1073
  method: 'DELETE',
1097
1074
  data: {
1098
1075
  streams
@@ -1106,7 +1083,7 @@ class FcrCoreServiceApi {
1106
1083
  config
1107
1084
  } = params;
1108
1085
  return await this._client.fetch({
1109
- path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/widgets/stt/caption/states/1"),
1086
+ path: `/v1/rooms/${roomUuid}/users/${userUuid}/widgets/stt/caption/states/1`,
1110
1087
  method: 'PUT',
1111
1088
  data: {
1112
1089
  source: config.sourceLanguage,
@@ -1120,7 +1097,7 @@ class FcrCoreServiceApi {
1120
1097
  userUuid
1121
1098
  } = params;
1122
1099
  return await this._client.fetch({
1123
- path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/widgets/stt/caption/states/0"),
1100
+ path: `/v1/rooms/${roomUuid}/users/${userUuid}/widgets/stt/caption/states/0`,
1124
1101
  method: 'PUT'
1125
1102
  });
1126
1103
  }
@@ -1131,7 +1108,7 @@ class FcrCoreServiceApi {
1131
1108
  config
1132
1109
  } = params;
1133
1110
  return await this._client.fetch({
1134
- path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/widgets/stt/transcribe/states/1"),
1111
+ path: `/v1/rooms/${roomUuid}/users/${userUuid}/widgets/stt/transcribe/states/1`,
1135
1112
  method: 'PUT',
1136
1113
  data: {
1137
1114
  source: config.sourceLanguage,
@@ -1145,7 +1122,7 @@ class FcrCoreServiceApi {
1145
1122
  userUuid
1146
1123
  } = params;
1147
1124
  return await this._client.fetch({
1148
- path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/widgets/stt/transcribe/states/0"),
1125
+ path: `/v1/rooms/${roomUuid}/users/${userUuid}/widgets/stt/transcribe/states/0`,
1149
1126
  method: 'PUT'
1150
1127
  });
1151
1128
  }
@@ -1156,7 +1133,7 @@ class FcrCoreServiceApi {
1156
1133
  language
1157
1134
  } = params;
1158
1135
  return await this._client.fetch({
1159
- path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/widgets/stt/language/speech"),
1136
+ path: `/v1/rooms/${roomUuid}/users/${userUuid}/widgets/stt/language/speech`,
1160
1137
  method: 'PATCH',
1161
1138
  data: {
1162
1139
  source: language
@@ -1170,7 +1147,7 @@ class FcrCoreServiceApi {
1170
1147
  language
1171
1148
  } = params;
1172
1149
  return await this._client.fetch({
1173
- path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/widgets/stt/language/subscribe/1"),
1150
+ path: `/v1/rooms/${roomUuid}/users/${userUuid}/widgets/stt/language/subscribe/1`,
1174
1151
  method: 'PATCH',
1175
1152
  data: {
1176
1153
  target: [language]
@@ -1183,7 +1160,7 @@ class FcrCoreServiceApi {
1183
1160
  userUuid
1184
1161
  } = params;
1185
1162
  return await this._client.fetch({
1186
- path: "/v1/rooms/".concat(roomUuid, "/users/").concat(userUuid, "/widgets/stt/language/subscribe/0"),
1163
+ path: `/v1/rooms/${roomUuid}/users/${userUuid}/widgets/stt/language/subscribe/0`,
1187
1164
  method: 'PATCH'
1188
1165
  });
1189
1166
  }
@@ -1194,7 +1171,7 @@ class FcrCoreServiceApi {
1194
1171
  targetRoles
1195
1172
  } = params;
1196
1173
  return await this._client.fetch({
1197
- path: "/v1/rooms/".concat(roomUuid, "/security/caption/").concat(enable ? 1 : 0),
1174
+ path: `/v1/rooms/${roomUuid}/security/caption/${enable ? 1 : 0}`,
1198
1175
  method: 'PUT',
1199
1176
  data: {
1200
1177
  targetRoles
@@ -1208,7 +1185,7 @@ class FcrCoreServiceApi {
1208
1185
  targetRoles
1209
1186
  } = params;
1210
1187
  return await this._client.fetch({
1211
- path: "/v1/rooms/".concat(roomUuid, "/security/transcribe/").concat(enable ? 1 : 0),
1188
+ path: `/v1/rooms/${roomUuid}/security/transcribe/${enable ? 1 : 0}`,
1212
1189
  method: 'PUT',
1213
1190
  data: {
1214
1191
  targetRoles
@@ -1222,7 +1199,7 @@ class FcrCoreServiceApi {
1222
1199
  targetRoles
1223
1200
  } = params;
1224
1201
  return await this._client.fetch({
1225
- path: "/v1/rooms/".concat(roomUuid, "/security/stt/").concat(enable ? 1 : 0),
1202
+ path: `/v1/rooms/${roomUuid}/security/stt/${enable ? 1 : 0}`,
1226
1203
  method: 'PUT',
1227
1204
  data: {
1228
1205
  targetRoles,