@unboundcx/sdk 4.8.10 → 4.8.12

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 (56) hide show
  1. package/base.js +41 -1
  2. package/index.js +9 -6
  3. package/package.json +1 -4
  4. package/services/ai/playbooks.js +22 -21
  5. package/services/ai/settings.js +4 -2
  6. package/services/ai/translate.js +3 -1
  7. package/services/ai/vocabulary.js +4 -3
  8. package/services/ai.js +21 -20
  9. package/services/chat.js +267 -52
  10. package/services/developerApis.js +174 -0
  11. package/services/directory.js +40 -9
  12. package/services/documents.js +11 -10
  13. package/services/engagementMetrics.js +2 -1
  14. package/services/enroll.js +16 -15
  15. package/services/externalOAuth.js +12 -11
  16. package/services/fax.js +4 -3
  17. package/services/generateId.js +3 -2
  18. package/services/googleCalendar.js +7 -6
  19. package/services/knowledgeBase.js +9 -8
  20. package/services/layouts.js +15 -14
  21. package/services/login.js +8 -7
  22. package/services/lookup.js +4 -3
  23. package/services/messaging/EmailAddressesService.js +5 -4
  24. package/services/messaging/EmailAnalyticsService.js +5 -4
  25. package/services/messaging/EmailDomainsService.js +8 -7
  26. package/services/messaging/EmailMailboxesService.js +13 -12
  27. package/services/messaging/EmailQueueService.js +2 -1
  28. package/services/messaging/EmailService.js +12 -11
  29. package/services/messaging/EmailSuppressionService.js +5 -4
  30. package/services/messaging/EmailTemplatesService.js +6 -5
  31. package/services/messaging/SmsService.js +3 -2
  32. package/services/messaging/SmsTemplatesService.js +6 -5
  33. package/services/messaging/TenDlcBrandsService.js +11 -10
  34. package/services/messaging/TenDlcCampaignManagementService.js +14 -13
  35. package/services/messaging/TenDlcCampaignsService.js +2 -1
  36. package/services/messaging/TollFreeCampaignsService.js +13 -12
  37. package/services/notes.js +7 -6
  38. package/services/objects.js +97 -36
  39. package/services/permissions.js +34 -33
  40. package/services/phoneNumbers.js +28 -27
  41. package/services/portals.js +8 -7
  42. package/services/{inbox.js → recents.js} +9 -8
  43. package/services/recordTypes.js +12 -11
  44. package/services/search.js +2 -1
  45. package/services/sipEndpoints.js +8 -7
  46. package/services/storage.js +16 -15
  47. package/services/subscriptions.js +4 -3
  48. package/services/taskRouter/CCService.js +9 -8
  49. package/services/taskRouter/MetricsService.js +3 -2
  50. package/services/taskRouter/TaskService.js +13 -12
  51. package/services/taskRouter/WorkerService.js +9 -8
  52. package/services/triggers.js +9 -8
  53. package/services/verification.js +5 -4
  54. package/services/video.js +52 -51
  55. package/services/voice.js +13 -12
  56. package/services/workflows.js +22 -21
package/services/video.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { internalRequest } from '../base.js';
1
2
  export class VideoService {
2
3
  constructor(sdk) {
3
4
  this.sdk = sdk;
@@ -5,7 +6,7 @@ export class VideoService {
5
6
 
6
7
  async clearToken() {
7
8
  const params = {};
8
- const result = await this.sdk._fetch(
9
+ const result = await internalRequest(this.sdk,
9
10
  `/video/clearVideoToken`,
10
11
  'POST',
11
12
  params,
@@ -50,7 +51,7 @@ export class VideoService {
50
51
  token,
51
52
  },
52
53
  };
53
- const result = await this.sdk._fetch(
54
+ const result = await internalRequest(this.sdk,
54
55
  `/video/${room}/join`,
55
56
  'POST',
56
57
  params,
@@ -101,7 +102,7 @@ export class VideoService {
101
102
  isSip: true,
102
103
  },
103
104
  };
104
- const result = await this.sdk._fetch(
105
+ const result = await internalRequest(this.sdk,
105
106
  `/video/${room}/join`,
106
107
  'POST',
107
108
  params,
@@ -124,7 +125,7 @@ export class VideoService {
124
125
  ...update,
125
126
  },
126
127
  };
127
- const result = await this.sdk._fetch(
128
+ const result = await internalRequest(this.sdk,
128
129
  `/video/${roomId}/${participantId}`,
129
130
  'PUT',
130
131
  params,
@@ -145,7 +146,7 @@ export class VideoService {
145
146
  participantId,
146
147
  },
147
148
  };
148
- const result = await this.sdk._fetch(
149
+ const result = await internalRequest(this.sdk,
149
150
  `/video/${roomId}/leave`,
150
151
  'DELETE',
151
152
  params,
@@ -161,7 +162,7 @@ export class VideoService {
161
162
  },
162
163
  );
163
164
  const params = {};
164
- const result = await this.sdk._fetch(
165
+ const result = await internalRequest(this.sdk,
165
166
  `/video/${roomId}/leave`,
166
167
  'DELETE',
167
168
  params,
@@ -195,7 +196,7 @@ export class VideoService {
195
196
  streamCreation,
196
197
  },
197
198
  };
198
- const result = await this.sdk._fetch(
199
+ const result = await internalRequest(this.sdk,
199
200
  `/video/${roomId}/${participantId}/mute/${mediaType}`,
200
201
  'PUT',
201
202
  params,
@@ -325,7 +326,7 @@ export class VideoService {
325
326
  earlyJoinMinutes,
326
327
  },
327
328
  };
328
- const result = await this.sdk._fetch(`/video`, 'POST', params);
329
+ const result = await internalRequest(this.sdk, `/video`, 'POST', params);
329
330
  return result;
330
331
  }
331
332
 
@@ -380,7 +381,7 @@ export class VideoService {
380
381
  ...update,
381
382
  },
382
383
  };
383
- const result = await this.sdk._fetch(`/video/${roomId}`, 'PUT', params);
384
+ const result = await internalRequest(this.sdk, `/video/${roomId}`, 'PUT', params);
384
385
  return result;
385
386
  }
386
387
 
@@ -408,7 +409,7 @@ export class VideoService {
408
409
  ...update,
409
410
  },
410
411
  };
411
- const result = await this.sdk._fetch(`/video/${roomId}/bot`, 'PUT', params);
412
+ const result = await internalRequest(this.sdk, `/video/${roomId}/bot`, 'PUT', params);
412
413
  return result;
413
414
  }
414
415
 
@@ -428,7 +429,7 @@ export class VideoService {
428
429
  callerIdNumber,
429
430
  },
430
431
  };
431
- const result = await this.sdk._fetch(
432
+ const result = await internalRequest(this.sdk,
432
433
  `/video/${roomId}/placeOutboundCall`,
433
434
  'POST',
434
435
  params,
@@ -451,7 +452,7 @@ export class VideoService {
451
452
  },
452
453
  };
453
454
 
454
- return await this.sdk._fetch(`/video/${roomId}`, 'GET', params);
455
+ return await internalRequest(this.sdk, `/video/${roomId}`, 'GET', params);
455
456
  }
456
457
 
457
458
  async listMeetings(options = {}) {
@@ -470,7 +471,7 @@ export class VideoService {
470
471
  query: options,
471
472
  };
472
473
 
473
- const result = await this.sdk._fetch('/video/meetings', 'GET', params);
474
+ const result = await internalRequest(this.sdk, '/video/meetings', 'GET', params);
474
475
  return result;
475
476
  }
476
477
 
@@ -499,7 +500,7 @@ export class VideoService {
499
500
  query: params,
500
501
  };
501
502
 
502
- const result = await this.sdk._fetch(
503
+ const result = await internalRequest(this.sdk,
503
504
  `/video/meetings/${roomId}/analytics`,
504
505
  'GET',
505
506
  options,
@@ -518,7 +519,7 @@ export class VideoService {
518
519
  if (options && options.deleteCalendarEvent === true) {
519
520
  params.body = { deleteCalendarEvent: true };
520
521
  }
521
- const result = await this.sdk._fetch(`/video/${roomId}`, 'DELETE', params);
522
+ const result = await internalRequest(this.sdk, `/video/${roomId}`, 'DELETE', params);
522
523
  return result;
523
524
  }
524
525
 
@@ -535,7 +536,7 @@ export class VideoService {
535
536
  body: participant,
536
537
  };
537
538
 
538
- const result = await this.sdk._fetch(
539
+ const result = await internalRequest(this.sdk,
539
540
  `/video/${roomId}/participants`,
540
541
  'POST',
541
542
  params,
@@ -552,7 +553,7 @@ export class VideoService {
552
553
  );
553
554
 
554
555
  const params = {};
555
- const result = await this.sdk._fetch(
556
+ const result = await internalRequest(this.sdk,
556
557
  `/video/${roomId}/close`,
557
558
  'POST',
558
559
  params,
@@ -594,7 +595,7 @@ export class VideoService {
594
595
  body: { token },
595
596
  };
596
597
 
597
- const result = await this.sdk._fetch(
598
+ const result = await internalRequest(this.sdk,
598
599
  `/video/${id}/validate`,
599
600
  'POST',
600
601
  params,
@@ -639,7 +640,7 @@ export class VideoService {
639
640
  { roomId },
640
641
  { roomId: { type: 'string', required: true } },
641
642
  );
642
- const result = await this.sdk._fetch(
643
+ const result = await internalRequest(this.sdk,
643
644
  `/video/session/end`,
644
645
  'POST',
645
646
  { body: { roomId } },
@@ -661,7 +662,7 @@ export class VideoService {
661
662
  body: stats,
662
663
  };
663
664
 
664
- const result = await this.sdk._fetch(
665
+ const result = await internalRequest(this.sdk,
665
666
  `/video/${roomId}/stats`,
666
667
  'POST',
667
668
  params,
@@ -682,7 +683,7 @@ export class VideoService {
682
683
  summary: { type: 'object', required: true },
683
684
  },
684
685
  );
685
- return this.sdk._fetch(
686
+ return internalRequest(this.sdk,
686
687
  `/internal/video/${roomId}/participants/${participantId}/summary`,
687
688
  'POST',
688
689
  { body: summary },
@@ -734,7 +735,7 @@ export class VideoService {
734
735
  },
735
736
  };
736
737
 
737
- const result = await this.sdk._fetch('/video/survey', 'POST', params);
738
+ const result = await internalRequest(this.sdk, '/video/survey', 'POST', params);
738
739
  return result;
739
740
  }
740
741
 
@@ -764,7 +765,7 @@ export class VideoService {
764
765
 
765
766
  const params = { body };
766
767
 
767
- const result = await this.sdk._fetch(
768
+ const result = await internalRequest(this.sdk,
768
769
  `/video/${roomId}/chat`,
769
770
  'POST',
770
771
  params,
@@ -812,7 +813,7 @@ export class VideoService {
812
813
  query: options,
813
814
  };
814
815
 
815
- const result = await this.sdk._fetch(
816
+ const result = await internalRequest(this.sdk,
816
817
  `/video/${roomId}/chat`,
817
818
  'GET',
818
819
  params,
@@ -848,7 +849,7 @@ export class VideoService {
848
849
  query: options,
849
850
  };
850
851
 
851
- const result = await this.sdk._fetch(
852
+ const result = await internalRequest(this.sdk,
852
853
  `/video/${roomId}/transcript`,
853
854
  'GET',
854
855
  params,
@@ -885,7 +886,7 @@ export class VideoService {
885
886
 
886
887
  const params = { body };
887
888
 
888
- const result = await this.sdk._fetch(
889
+ const result = await internalRequest(this.sdk,
889
890
  `/video/${roomId}/chat/${messageId}`,
890
891
  'PUT',
891
892
  params,
@@ -911,7 +912,7 @@ export class VideoService {
911
912
 
912
913
  const params = {};
913
914
 
914
- const result = await this.sdk._fetch(
915
+ const result = await internalRequest(this.sdk,
915
916
  `/video/${roomId}/chat/${messageId}`,
916
917
  'DELETE',
917
918
  params,
@@ -973,7 +974,7 @@ export class VideoService {
973
974
  body: settings,
974
975
  };
975
976
 
976
- const result = await this.sdk._fetch(
977
+ const result = await internalRequest(this.sdk,
977
978
  '/video/settings/user',
978
979
  'POST',
979
980
  params,
@@ -1023,7 +1024,7 @@ export class VideoService {
1023
1024
  body: settings,
1024
1025
  };
1025
1026
 
1026
- const result = await this.sdk._fetch('/video/settings/user', 'PUT', params);
1027
+ const result = await internalRequest(this.sdk, '/video/settings/user', 'PUT', params);
1027
1028
  return result;
1028
1029
  }
1029
1030
 
@@ -1047,7 +1048,7 @@ export class VideoService {
1047
1048
  params.query.userId = userId;
1048
1049
  }
1049
1050
 
1050
- const result = await this.sdk._fetch('/video/settings/user', 'GET', params);
1051
+ const result = await internalRequest(this.sdk, '/video/settings/user', 'GET', params);
1051
1052
  return result;
1052
1053
  }
1053
1054
 
@@ -1065,7 +1066,7 @@ export class VideoService {
1065
1066
  },
1066
1067
  );
1067
1068
 
1068
- const result = await this.sdk._fetch(
1069
+ const result = await internalRequest(this.sdk,
1069
1070
  `/video/${roomId}/livePresence`,
1070
1071
  'GET',
1071
1072
  );
@@ -1085,7 +1086,7 @@ export class VideoService {
1085
1086
  },
1086
1087
  );
1087
1088
 
1088
- const result = await this.sdk._fetch(`/video/${roomId}/summary`, 'GET');
1089
+ const result = await internalRequest(this.sdk, `/video/${roomId}/summary`, 'GET');
1089
1090
  return result;
1090
1091
  }
1091
1092
 
@@ -1109,7 +1110,7 @@ export class VideoService {
1109
1110
  body: { summaryJson },
1110
1111
  };
1111
1112
 
1112
- const result = await this.sdk._fetch(
1113
+ const result = await internalRequest(this.sdk,
1113
1114
  `/video/${roomId}/summary`,
1114
1115
  'PATCH',
1115
1116
  params,
@@ -1130,7 +1131,7 @@ export class VideoService {
1130
1131
  },
1131
1132
  );
1132
1133
 
1133
- const result = await this.sdk._fetch(
1134
+ const result = await internalRequest(this.sdk,
1134
1135
  `/video/${roomId}/catch-me-up`,
1135
1136
  'POST',
1136
1137
  {},
@@ -1161,7 +1162,7 @@ export class VideoService {
1161
1162
  body.history = history;
1162
1163
  }
1163
1164
 
1164
- const result = await this.sdk._fetch(`/video/${roomId}/assistant`, 'POST', {
1165
+ const result = await internalRequest(this.sdk, `/video/${roomId}/assistant`, 'POST', {
1165
1166
  body,
1166
1167
  });
1167
1168
  return result;
@@ -1189,7 +1190,7 @@ export class VideoService {
1189
1190
  body: { text },
1190
1191
  };
1191
1192
 
1192
- const result = await this.sdk._fetch(
1193
+ const result = await internalRequest(this.sdk,
1193
1194
  `/video/${roomId}/transcript/${messageId}`,
1194
1195
  'PATCH',
1195
1196
  params,
@@ -1212,7 +1213,7 @@ export class VideoService {
1212
1213
  },
1213
1214
  );
1214
1215
 
1215
- const result = await this.sdk._fetch(
1216
+ const result = await internalRequest(this.sdk,
1216
1217
  `/video/${roomId}/transcript/${messageId}/redact`,
1217
1218
  'POST',
1218
1219
  {},
@@ -1242,7 +1243,7 @@ export class VideoService {
1242
1243
  body: { participantId, displayName },
1243
1244
  };
1244
1245
 
1245
- const result = await this.sdk._fetch(
1246
+ const result = await internalRequest(this.sdk,
1246
1247
  `/video/${roomId}/transcript-speakers`,
1247
1248
  'PATCH',
1248
1249
  params,
@@ -1263,7 +1264,7 @@ export class VideoService {
1263
1264
  },
1264
1265
  );
1265
1266
 
1266
- const result = await this.sdk._fetch(
1267
+ const result = await internalRequest(this.sdk,
1267
1268
  `/video/${roomId}/recording-convert-retry`,
1268
1269
  'POST',
1269
1270
  {},
@@ -1285,7 +1286,7 @@ export class VideoService {
1285
1286
  },
1286
1287
  );
1287
1288
 
1288
- const result = await this.sdk._fetch(
1289
+ const result = await internalRequest(this.sdk,
1289
1290
  `/video/${roomId}/auto-name`,
1290
1291
  'POST',
1291
1292
  {},
@@ -1312,7 +1313,7 @@ export class VideoService {
1312
1313
  body: { action },
1313
1314
  };
1314
1315
 
1315
- const result = await this.sdk._fetch(
1316
+ const result = await internalRequest(this.sdk,
1316
1317
  `/video/${roomId}/transcription`,
1317
1318
  'POST',
1318
1319
  params,
@@ -1340,7 +1341,7 @@ export class VideoService {
1340
1341
  body: { language },
1341
1342
  };
1342
1343
 
1343
- const result = await this.sdk._fetch(
1344
+ const result = await internalRequest(this.sdk,
1344
1345
  `/video/${roomId}/caption-language`,
1345
1346
  'POST',
1346
1347
  params,
@@ -1369,7 +1370,7 @@ export class VideoService {
1369
1370
  body: { targetLanguage },
1370
1371
  };
1371
1372
 
1372
- const result = await this.sdk._fetch(
1373
+ const result = await internalRequest(this.sdk,
1373
1374
  `/video/${roomId}/transcript/translate`,
1374
1375
  'POST',
1375
1376
  params,
@@ -1399,7 +1400,7 @@ export class VideoService {
1399
1400
  body: { image, title },
1400
1401
  };
1401
1402
 
1402
- const result = await this.sdk._fetch(
1403
+ const result = await internalRequest(this.sdk,
1403
1404
  `/video/${roomId}/content-frame`,
1404
1405
  'POST',
1405
1406
  params,
@@ -1420,7 +1421,7 @@ export class VideoService {
1420
1421
  },
1421
1422
  );
1422
1423
 
1423
- const result = await this.sdk._fetch(
1424
+ const result = await internalRequest(this.sdk,
1424
1425
  `/video/${roomId}/content-events`,
1425
1426
  'GET',
1426
1427
  );
@@ -1450,7 +1451,7 @@ export class VideoService {
1450
1451
  );
1451
1452
  params.query.userId = userId;
1452
1453
  }
1453
- const result = await this.sdk._fetch('/video/personal-room', 'GET', params);
1454
+ const result = await internalRequest(this.sdk, '/video/personal-room', 'GET', params);
1454
1455
  return result;
1455
1456
  }
1456
1457
 
@@ -1489,7 +1490,7 @@ export class VideoService {
1489
1490
  if (userId !== undefined) body.userId = userId;
1490
1491
 
1491
1492
  const params = { body };
1492
- const result = await this.sdk._fetch('/video/personal-room', 'PUT', params);
1493
+ const result = await internalRequest(this.sdk, '/video/personal-room', 'PUT', params);
1493
1494
  return result;
1494
1495
  }
1495
1496
 
@@ -1508,7 +1509,7 @@ export class VideoService {
1508
1509
  );
1509
1510
  body.userId = userId;
1510
1511
  }
1511
- const result = await this.sdk._fetch(
1512
+ const result = await internalRequest(this.sdk,
1512
1513
  '/video/personal-room/regenerate-pin',
1513
1514
  'POST',
1514
1515
  { body },
@@ -1533,7 +1534,7 @@ export class VideoService {
1533
1534
  );
1534
1535
  const query = { slug };
1535
1536
  if (userId) query.userId = userId;
1536
- const result = await this.sdk._fetch(
1537
+ const result = await internalRequest(this.sdk,
1537
1538
  '/video/personal-room/slug-available',
1538
1539
  'GET',
1539
1540
  { query },
@@ -1558,7 +1559,7 @@ export class VideoService {
1558
1559
  );
1559
1560
  body.userId = userId;
1560
1561
  }
1561
- const result = await this.sdk._fetch(
1562
+ const result = await internalRequest(this.sdk,
1562
1563
  '/video/personal-room/regenerate-password',
1563
1564
  'POST',
1564
1565
  { body },
@@ -1588,7 +1589,7 @@ export class VideoService {
1588
1589
  },
1589
1590
  );
1590
1591
 
1591
- const result = await this.sdk._fetch(
1592
+ const result = await internalRequest(this.sdk,
1592
1593
  `/video/personal-room/resolve/${slug}`,
1593
1594
  'POST',
1594
1595
  { body: { password } },
package/services/voice.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { internalRequest } from '../base.js';
1
2
  export class VoiceService {
2
3
  constructor(sdk) {
3
4
  this.sdk = sdk;
@@ -18,7 +19,7 @@ export class VoiceService {
18
19
  body: { callId, cdrId, action, direction },
19
20
  };
20
21
 
21
- const result = await this.sdk._fetch(`/voice/record/`, 'POST', params);
22
+ const result = await internalRequest(this.sdk, `/voice/record/`, 'POST', params);
22
23
  return result;
23
24
  }
24
25
 
@@ -42,7 +43,7 @@ export class VoiceService {
42
43
  body: { callId, cdrId, action, direction },
43
44
  };
44
45
 
45
- const result = await this.sdk._fetch(
46
+ const result = await internalRequest(this.sdk,
46
47
  `/voice/transcription/`,
47
48
  'POST',
48
49
  params,
@@ -79,7 +80,7 @@ export class VoiceService {
79
80
  },
80
81
  };
81
82
 
82
- const result = await this.sdk._fetch('/voice/', 'POST', params);
83
+ const result = await internalRequest(this.sdk, '/voice/', 'POST', params);
83
84
  return result;
84
85
  }
85
86
 
@@ -143,7 +144,7 @@ export class VoiceService {
143
144
  },
144
145
  };
145
146
 
146
- const result = await this.sdk._fetch('/voice/replace', 'PUT', params);
147
+ const result = await internalRequest(this.sdk, '/voice/replace', 'PUT', params);
147
148
  return result;
148
149
  }
149
150
 
@@ -175,7 +176,7 @@ export class VoiceService {
175
176
  },
176
177
  };
177
178
 
178
- const result = await this.sdk._fetch(`/voice/hangup`, 'PUT', params);
179
+ const result = await internalRequest(this.sdk, `/voice/hangup`, 'PUT', params);
179
180
  return result;
180
181
  }
181
182
 
@@ -201,7 +202,7 @@ export class VoiceService {
201
202
  },
202
203
  );
203
204
 
204
- const result = await this.sdk._fetch(`/voice/cdr/${cdrId}/events`, 'GET');
205
+ const result = await internalRequest(this.sdk, `/voice/cdr/${cdrId}/events`, 'GET');
205
206
  return result;
206
207
  }
207
208
 
@@ -219,7 +220,7 @@ export class VoiceService {
219
220
  body: { channels },
220
221
  };
221
222
 
222
- const result = await this.sdk._fetch('/voice/calls/hold', 'PUT', params);
223
+ const result = await internalRequest(this.sdk, '/voice/calls/hold', 'PUT', params);
223
224
  return result;
224
225
  }
225
226
 
@@ -237,7 +238,7 @@ export class VoiceService {
237
238
  body: { action, direction },
238
239
  };
239
240
 
240
- const result = await this.sdk._fetch(
241
+ const result = await internalRequest(this.sdk,
241
242
  `/voice/calls/mute/${voiceChannelId}`,
242
243
  'PUT',
243
244
  params,
@@ -262,7 +263,7 @@ export class VoiceService {
262
263
  body: { dtmf },
263
264
  };
264
265
 
265
- const result = await this.sdk._fetch(
266
+ const result = await internalRequest(this.sdk,
266
267
  `/voice/calls/dtmf/${voiceChannelId}`,
267
268
  'POST',
268
269
  params,
@@ -308,7 +309,7 @@ export class VoiceService {
308
309
  body: bodyData,
309
310
  };
310
311
 
311
- const result = await this.sdk._fetch(
312
+ const result = await internalRequest(this.sdk,
312
313
  `/voice/calls/transcribe/${voiceChannelId}`,
313
314
  'POST',
314
315
  params,
@@ -351,7 +352,7 @@ export class VoiceService {
351
352
  body: bodyData,
352
353
  };
353
354
 
354
- const result = await this.sdk._fetch(
355
+ const result = await internalRequest(this.sdk,
355
356
  '/voice/calls/transfer',
356
357
  'POST',
357
358
  params,
@@ -371,7 +372,7 @@ export class VoiceService {
371
372
  body: { channels },
372
373
  };
373
374
 
374
- const result = await this.sdk._fetch(
375
+ const result = await internalRequest(this.sdk,
375
376
  '/voice/calls/conference',
376
377
  'POST',
377
378
  params,