@webex/calling 3.0.0-next.2 → 3.0.0-next.4

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 (283) hide show
  1. package/CHANGELOG.md +1403 -0
  2. package/README.md +74 -74
  3. package/dist/module/CallHistory/CallHistory.js +81 -81
  4. package/dist/module/CallHistory/callHistoryFixtures.js +307 -307
  5. package/dist/module/CallHistory/constants.js +9 -9
  6. package/dist/module/CallHistory/types.js +1 -1
  7. package/dist/module/CallSettings/CallSettings.js +65 -65
  8. package/dist/module/CallSettings/UcmBackendConnector.js +100 -100
  9. package/dist/module/CallSettings/WxCallBackendConnector.js +287 -287
  10. package/dist/module/CallSettings/constants.js +11 -11
  11. package/dist/module/CallSettings/testFixtures.js +62 -62
  12. package/dist/module/CallSettings/types.js +1 -1
  13. package/dist/module/CallingClient/CallingClient.js +248 -248
  14. package/dist/module/CallingClient/callRecordFixtures.js +93 -93
  15. package/dist/module/CallingClient/calling/CallerId/index.js +169 -169
  16. package/dist/module/CallingClient/calling/CallerId/types.js +1 -1
  17. package/dist/module/CallingClient/calling/call.js +1658 -1658
  18. package/dist/module/CallingClient/calling/callManager.js +284 -284
  19. package/dist/module/CallingClient/calling/index.js +2 -2
  20. package/dist/module/CallingClient/calling/types.js +53 -53
  21. package/dist/module/CallingClient/callingClientFixtures.js +38 -38
  22. package/dist/module/CallingClient/constants.js +122 -122
  23. package/dist/module/CallingClient/line/index.js +158 -158
  24. package/dist/module/CallingClient/line/types.js +15 -15
  25. package/dist/module/CallingClient/registration/index.js +1 -1
  26. package/dist/module/CallingClient/registration/register.js +507 -507
  27. package/dist/module/CallingClient/registration/registerFixtures.js +28 -28
  28. package/dist/module/CallingClient/registration/types.js +1 -1
  29. package/dist/module/CallingClient/types.js +1 -1
  30. package/dist/module/Contacts/ContactsClient.js +484 -484
  31. package/dist/module/Contacts/constants.js +20 -20
  32. package/dist/module/Contacts/contactFixtures.js +284 -284
  33. package/dist/module/Contacts/types.js +10 -10
  34. package/dist/module/Errors/catalog/CallError.js +26 -26
  35. package/dist/module/Errors/catalog/CallingDeviceError.js +18 -18
  36. package/dist/module/Errors/catalog/ExtendedError.js +10 -10
  37. package/dist/module/Errors/catalog/LineError.js +24 -24
  38. package/dist/module/Errors/index.js +2 -2
  39. package/dist/module/Errors/types.js +48 -48
  40. package/dist/module/Events/impl/index.js +19 -19
  41. package/dist/module/Events/types.js +83 -83
  42. package/dist/module/Logger/index.js +114 -114
  43. package/dist/module/Logger/types.js +25 -25
  44. package/dist/module/Metrics/index.js +232 -232
  45. package/dist/module/Metrics/types.js +37 -37
  46. package/dist/module/SDKConnector/index.js +39 -39
  47. package/dist/module/SDKConnector/types.js +1 -1
  48. package/dist/module/SDKConnector/utils.js +12 -12
  49. package/dist/module/Voicemail/BroadworksBackendConnector.js +291 -291
  50. package/dist/module/Voicemail/UcmBackendConnector.js +279 -279
  51. package/dist/module/Voicemail/Voicemail.js +110 -110
  52. package/dist/module/Voicemail/WxCallBackendConnector.js +279 -279
  53. package/dist/module/Voicemail/constants.js +29 -29
  54. package/dist/module/Voicemail/types.js +1 -1
  55. package/dist/module/Voicemail/voicemailFixture.js +510 -510
  56. package/dist/module/api.js +6 -6
  57. package/dist/module/common/Utils.js +802 -802
  58. package/dist/module/common/constants.js +41 -41
  59. package/dist/module/common/index.js +1 -1
  60. package/dist/module/common/testUtil.js +938 -938
  61. package/dist/module/common/types.js +57 -57
  62. package/dist/module/index.js +8 -8
  63. package/dist/types/CallHistory/CallHistory.d.ts +17 -17
  64. package/dist/types/CallHistory/callHistoryFixtures.d.ts +94 -94
  65. package/dist/types/CallHistory/constants.d.ts +9 -9
  66. package/dist/types/CallHistory/types.d.ts +18 -18
  67. package/dist/types/CallSettings/CallSettings.d.ts +19 -19
  68. package/dist/types/CallSettings/UcmBackendConnector.d.ts +19 -19
  69. package/dist/types/CallSettings/WxCallBackendConnector.d.ts +21 -21
  70. package/dist/types/CallSettings/constants.d.ts +11 -11
  71. package/dist/types/CallSettings/testFixtures.d.ts +15 -15
  72. package/dist/types/CallSettings/types.d.ts +107 -107
  73. package/dist/types/CallingClient/CallingClient.d.ts +35 -35
  74. package/dist/types/CallingClient/callRecordFixtures.d.ts +3 -3
  75. package/dist/types/CallingClient/calling/CallerId/index.d.ts +17 -17
  76. package/dist/types/CallingClient/calling/CallerId/types.d.ts +41 -41
  77. package/dist/types/CallingClient/calling/call.d.ts +96 -96
  78. package/dist/types/CallingClient/calling/callManager.d.ts +25 -25
  79. package/dist/types/CallingClient/calling/index.d.ts +2 -2
  80. package/dist/types/CallingClient/calling/types.d.ts +206 -206
  81. package/dist/types/CallingClient/callingClientFixtures.d.ts +18 -18
  82. package/dist/types/CallingClient/constants.d.ts +122 -122
  83. package/dist/types/CallingClient/line/index.d.ts +43 -43
  84. package/dist/types/CallingClient/line/types.d.ts +55 -55
  85. package/dist/types/CallingClient/registration/index.d.ts +1 -1
  86. package/dist/types/CallingClient/registration/register.d.ts +64 -64
  87. package/dist/types/CallingClient/registration/registerFixtures.d.ts +28 -28
  88. package/dist/types/CallingClient/registration/types.d.ts +20 -20
  89. package/dist/types/CallingClient/types.d.ts +29 -29
  90. package/dist/types/Contacts/ContactsClient.d.ts +26 -26
  91. package/dist/types/Contacts/constants.d.ts +19 -19
  92. package/dist/types/Contacts/contactFixtures.d.ts +280 -280
  93. package/dist/types/Contacts/types.d.ts +72 -72
  94. package/dist/types/Errors/catalog/CallError.d.ts +11 -11
  95. package/dist/types/Errors/catalog/CallingDeviceError.d.ts +10 -10
  96. package/dist/types/Errors/catalog/ExtendedError.d.ts +6 -6
  97. package/dist/types/Errors/catalog/LineError.d.ts +10 -10
  98. package/dist/types/Errors/index.d.ts +2 -2
  99. package/dist/types/Errors/types.d.ts +60 -60
  100. package/dist/types/Events/impl/index.d.ts +8 -8
  101. package/dist/types/Events/types.d.ts +288 -288
  102. package/dist/types/Logger/index.d.ts +12 -12
  103. package/dist/types/Logger/types.d.ts +25 -25
  104. package/dist/types/Metrics/index.d.ts +5 -5
  105. package/dist/types/Metrics/types.d.ts +42 -42
  106. package/dist/types/SDKConnector/index.d.ts +12 -12
  107. package/dist/types/SDKConnector/types.d.ts +128 -128
  108. package/dist/types/SDKConnector/utils.d.ts +5 -5
  109. package/dist/types/Voicemail/BroadworksBackendConnector.d.ts +27 -27
  110. package/dist/types/Voicemail/UcmBackendConnector.d.ts +34 -34
  111. package/dist/types/Voicemail/Voicemail.d.ts +27 -27
  112. package/dist/types/Voicemail/WxCallBackendConnector.d.ts +23 -23
  113. package/dist/types/Voicemail/constants.d.ts +29 -29
  114. package/dist/types/Voicemail/types.d.ts +133 -133
  115. package/dist/types/Voicemail/voicemailFixture.d.ts +417 -417
  116. package/dist/types/api.d.ts +16 -16
  117. package/dist/types/common/Utils.d.ts +34 -34
  118. package/dist/types/common/constants.d.ts +41 -41
  119. package/dist/types/common/index.d.ts +1 -1
  120. package/dist/types/common/testUtil.d.ts +3611 -3611
  121. package/dist/types/common/types.d.ts +191 -191
  122. package/dist/types/index.d.ts +8 -8
  123. package/package.json +4 -4
  124. package/dist/CallHistory/CallHistory.js +0 -203
  125. package/dist/CallHistory/CallHistory.js.map +0 -1
  126. package/dist/CallHistory/CallHistory.test.js +0 -133
  127. package/dist/CallHistory/CallHistory.test.js.map +0 -1
  128. package/dist/CallHistory/callHistoryFixtures.js +0 -310
  129. package/dist/CallHistory/callHistoryFixtures.js.map +0 -1
  130. package/dist/CallHistory/constants.js +0 -26
  131. package/dist/CallHistory/constants.js.map +0 -1
  132. package/dist/CallHistory/types.js +0 -7
  133. package/dist/CallHistory/types.js.map +0 -1
  134. package/dist/CallSettings/CallSettings.js +0 -276
  135. package/dist/CallSettings/CallSettings.js.map +0 -1
  136. package/dist/CallSettings/CallSettings.test.js +0 -122
  137. package/dist/CallSettings/CallSettings.test.js.map +0 -1
  138. package/dist/CallSettings/UcmBackendConnector.js +0 -217
  139. package/dist/CallSettings/UcmBackendConnector.js.map +0 -1
  140. package/dist/CallSettings/UcmBackendConnector.test.js +0 -227
  141. package/dist/CallSettings/UcmBackendConnector.test.js.map +0 -1
  142. package/dist/CallSettings/WxCallBackendConnector.js +0 -541
  143. package/dist/CallSettings/WxCallBackendConnector.js.map +0 -1
  144. package/dist/CallSettings/WxCallBackendConnector.test.js +0 -802
  145. package/dist/CallSettings/WxCallBackendConnector.test.js.map +0 -1
  146. package/dist/CallSettings/constants.js +0 -30
  147. package/dist/CallSettings/constants.js.map +0 -1
  148. package/dist/CallSettings/testFixtures.js +0 -72
  149. package/dist/CallSettings/testFixtures.js.map +0 -1
  150. package/dist/CallSettings/types.js +0 -7
  151. package/dist/CallSettings/types.js.map +0 -1
  152. package/dist/CallingClient/CallingClient.js +0 -572
  153. package/dist/CallingClient/CallingClient.js.map +0 -1
  154. package/dist/CallingClient/CallingClient.test.js +0 -931
  155. package/dist/CallingClient/CallingClient.test.js.map +0 -1
  156. package/dist/CallingClient/callRecordFixtures.js +0 -103
  157. package/dist/CallingClient/callRecordFixtures.js.map +0 -1
  158. package/dist/CallingClient/calling/CallerId/index.js +0 -287
  159. package/dist/CallingClient/calling/CallerId/index.js.map +0 -1
  160. package/dist/CallingClient/calling/CallerId/index.test.js +0 -274
  161. package/dist/CallingClient/calling/CallerId/index.test.js.map +0 -1
  162. package/dist/CallingClient/calling/CallerId/types.js +0 -7
  163. package/dist/CallingClient/calling/CallerId/types.js.map +0 -1
  164. package/dist/CallingClient/calling/call.js +0 -2995
  165. package/dist/CallingClient/calling/call.js.map +0 -1
  166. package/dist/CallingClient/calling/call.test.js +0 -2614
  167. package/dist/CallingClient/calling/call.test.js.map +0 -1
  168. package/dist/CallingClient/calling/callManager.js +0 -443
  169. package/dist/CallingClient/calling/callManager.js.map +0 -1
  170. package/dist/CallingClient/calling/callManager.test.js +0 -683
  171. package/dist/CallingClient/calling/callManager.test.js.map +0 -1
  172. package/dist/CallingClient/calling/index.js +0 -30
  173. package/dist/CallingClient/calling/index.js.map +0 -1
  174. package/dist/CallingClient/calling/types.js +0 -71
  175. package/dist/CallingClient/calling/types.js.map +0 -1
  176. package/dist/CallingClient/callingClientFixtures.js +0 -53
  177. package/dist/CallingClient/callingClientFixtures.js.map +0 -1
  178. package/dist/CallingClient/constants.js +0 -226
  179. package/dist/CallingClient/constants.js.map +0 -1
  180. package/dist/CallingClient/line/index.js +0 -312
  181. package/dist/CallingClient/line/index.js.map +0 -1
  182. package/dist/CallingClient/line/line.test.js +0 -270
  183. package/dist/CallingClient/line/line.test.js.map +0 -1
  184. package/dist/CallingClient/line/types.js +0 -25
  185. package/dist/CallingClient/line/types.js.map +0 -1
  186. package/dist/CallingClient/registration/index.js +0 -19
  187. package/dist/CallingClient/registration/index.js.map +0 -1
  188. package/dist/CallingClient/registration/register.js +0 -1295
  189. package/dist/CallingClient/registration/register.js.map +0 -1
  190. package/dist/CallingClient/registration/register.test.js +0 -838
  191. package/dist/CallingClient/registration/register.test.js.map +0 -1
  192. package/dist/CallingClient/registration/registerFixtures.js +0 -41
  193. package/dist/CallingClient/registration/registerFixtures.js.map +0 -1
  194. package/dist/CallingClient/registration/types.js +0 -7
  195. package/dist/CallingClient/registration/types.js.map +0 -1
  196. package/dist/CallingClient/types.js +0 -7
  197. package/dist/CallingClient/types.js.map +0 -1
  198. package/dist/Contacts/ContactsClient.js +0 -1139
  199. package/dist/Contacts/ContactsClient.js.map +0 -1
  200. package/dist/Contacts/ContactsClient.test.js +0 -725
  201. package/dist/Contacts/ContactsClient.test.js.map +0 -1
  202. package/dist/Contacts/constants.js +0 -36
  203. package/dist/Contacts/constants.js.map +0 -1
  204. package/dist/Contacts/contactFixtures.js +0 -340
  205. package/dist/Contacts/contactFixtures.js.map +0 -1
  206. package/dist/Contacts/types.js +0 -20
  207. package/dist/Contacts/types.js.map +0 -1
  208. package/dist/Errors/catalog/CallError.js +0 -94
  209. package/dist/Errors/catalog/CallError.js.map +0 -1
  210. package/dist/Errors/catalog/CallingDeviceError.js +0 -88
  211. package/dist/Errors/catalog/CallingDeviceError.js.map +0 -1
  212. package/dist/Errors/catalog/ExtendedError.js +0 -45
  213. package/dist/Errors/catalog/ExtendedError.js.map +0 -1
  214. package/dist/Errors/catalog/LineError.js +0 -90
  215. package/dist/Errors/catalog/LineError.js.map +0 -1
  216. package/dist/Errors/index.js +0 -21
  217. package/dist/Errors/index.js.map +0 -1
  218. package/dist/Errors/types.js +0 -62
  219. package/dist/Errors/types.js.map +0 -1
  220. package/dist/Events/impl/index.js +0 -82
  221. package/dist/Events/impl/index.js.map +0 -1
  222. package/dist/Events/types.js +0 -111
  223. package/dist/Events/types.js.map +0 -1
  224. package/dist/Logger/index.js +0 -221
  225. package/dist/Logger/index.js.map +0 -1
  226. package/dist/Logger/index.test.js +0 -62
  227. package/dist/Logger/index.test.js.map +0 -1
  228. package/dist/Logger/types.js +0 -37
  229. package/dist/Logger/types.js.map +0 -1
  230. package/dist/Metrics/index.js +0 -329
  231. package/dist/Metrics/index.js.map +0 -1
  232. package/dist/Metrics/index.test.js +0 -291
  233. package/dist/Metrics/index.test.js.map +0 -1
  234. package/dist/Metrics/types.js +0 -50
  235. package/dist/Metrics/types.js.map +0 -1
  236. package/dist/SDKConnector/index.js +0 -105
  237. package/dist/SDKConnector/index.js.map +0 -1
  238. package/dist/SDKConnector/index.test.js +0 -9
  239. package/dist/SDKConnector/index.test.js.map +0 -1
  240. package/dist/SDKConnector/types.js +0 -7
  241. package/dist/SDKConnector/types.js.map +0 -1
  242. package/dist/SDKConnector/utils.js +0 -40
  243. package/dist/SDKConnector/utils.js.map +0 -1
  244. package/dist/SDKConnector/utils.test.js +0 -9
  245. package/dist/SDKConnector/utils.test.js.map +0 -1
  246. package/dist/Voicemail/BroadworksBackendConnector.js +0 -632
  247. package/dist/Voicemail/BroadworksBackendConnector.js.map +0 -1
  248. package/dist/Voicemail/BroadworksBackendConnector.test.js +0 -733
  249. package/dist/Voicemail/BroadworksBackendConnector.test.js.map +0 -1
  250. package/dist/Voicemail/UcmBackendConnector.js +0 -566
  251. package/dist/Voicemail/UcmBackendConnector.js.map +0 -1
  252. package/dist/Voicemail/UcmBackendConnector.test.js +0 -628
  253. package/dist/Voicemail/UcmBackendConnector.test.js.map +0 -1
  254. package/dist/Voicemail/Voicemail.js +0 -378
  255. package/dist/Voicemail/Voicemail.js.map +0 -1
  256. package/dist/Voicemail/Voicemail.test.js +0 -226
  257. package/dist/Voicemail/Voicemail.test.js.map +0 -1
  258. package/dist/Voicemail/WxCallBackendConnector.js +0 -540
  259. package/dist/Voicemail/WxCallBackendConnector.js.map +0 -1
  260. package/dist/Voicemail/WxCallBackendConnector.test.js +0 -942
  261. package/dist/Voicemail/WxCallBackendConnector.test.js.map +0 -1
  262. package/dist/Voicemail/constants.js +0 -66
  263. package/dist/Voicemail/constants.js.map +0 -1
  264. package/dist/Voicemail/types.js +0 -7
  265. package/dist/Voicemail/types.js.map +0 -1
  266. package/dist/Voicemail/voicemailFixture.js +0 -559
  267. package/dist/Voicemail/voicemailFixture.js.map +0 -1
  268. package/dist/api.js +0 -134
  269. package/dist/api.js.map +0 -1
  270. package/dist/common/Utils.js +0 -1264
  271. package/dist/common/Utils.js.map +0 -1
  272. package/dist/common/Utils.test.js +0 -1227
  273. package/dist/common/Utils.test.js.map +0 -1
  274. package/dist/common/constants.js +0 -90
  275. package/dist/common/constants.js.map +0 -1
  276. package/dist/common/index.js +0 -19
  277. package/dist/common/index.js.map +0 -1
  278. package/dist/common/testUtil.js +0 -968
  279. package/dist/common/testUtil.js.map +0 -1
  280. package/dist/common/types.js +0 -75
  281. package/dist/common/types.js.map +0 -1
  282. package/dist/index.js +0 -63
  283. package/dist/index.js.map +0 -1
@@ -1,968 +0,0 @@
1
- "use strict";
2
-
3
- var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
4
- var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
5
- _Object$defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.getSampleScimResponse = exports.getSampleRawAndParsedMediaStats = exports.getSamplePeopleListResponse = exports.getMockRequestTemplate = exports.getMockDeviceInfo = exports.getMobiusDiscoveryResponse = exports.flushPromises = void 0;
9
- exports.getTestUtilsWebex = getTestUtilsWebex;
10
- exports.registration = exports.mockCallingClient = exports.mediaConnection = void 0;
11
- var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
12
- var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
13
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/toConsumableArray"));
14
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
15
- var _platform = _interopRequireDefault(require("platform"));
16
- /* eslint-disable valid-jsdoc */
17
- /*
18
- This file acts as a utility to create a mock Webex object that can be imported
19
- into UT. As we can see, the methods have been replaced with mock jest.fn().
20
- In our respective UTs, we can specify the return values of these functions
21
- using webex.request.mockReturnValue() or webex.request.mockReturnValueOnce().
22
- */
23
-
24
- var MediaSDKMock = jest.createMockFromModule('@webex/internal-media-core');
25
-
26
- /**
27
- * Returns a fresh copy of the webex object per call.
28
- */
29
- function getTestUtilsWebex() {
30
- return {
31
- // top level primitives/funcs
32
- version: '1.1.1',
33
- canAuthorize: true,
34
- credentials: {
35
- getUserToken: jest.fn()
36
- },
37
- ready: true,
38
- request: jest.fn(),
39
- // internal plugins
40
- internal: {
41
- metrics: {
42
- submitClientMetrics: jest.fn()
43
- },
44
- mercury: {
45
- on: jest.fn(),
46
- off: jest.fn(),
47
- connected: true,
48
- connecting: false
49
- },
50
- calendar: null,
51
- device: {
52
- url: 'https://wdm-intb.ciscospark.com/wdm/api/v1/devices/c5ae3b86-1bb7-40f1-a6a9-c296ee7e61d5',
53
- deviceId: 'c5ae3b86-1bb7-40f1-a6a9-c296ee7e61d5',
54
- userId: '8a67806f-fc4d-446b-a131-31e71ea5b0e9',
55
- orgId: '1704d30d-a131-4bc7-9449-948487643793',
56
- version: '1',
57
- callingBehavior: 'NATIVE_WEBEX_TEAMS_CALLING',
58
- features: {
59
- entitlement: {
60
- models: [{
61
- _values: {
62
- key: 'bc-sp-standard'
63
- }
64
- }]
65
- }
66
- }
67
- },
68
- dss: {
69
- lookup: jest.fn()
70
- },
71
- encryption: {
72
- decryptText: jest.fn(),
73
- encryptText: jest.fn(),
74
- kms: {
75
- createUnboundKeys: jest.fn(),
76
- createResource: jest.fn(),
77
- bindKey: jest.fn()
78
- }
79
- },
80
- presence: jest.fn(),
81
- support: jest.fn(),
82
- services: {
83
- _serviceUrls: {
84
- mobius: 'https://mobius.aintgen-a-1.int.infra.webex.com/api/v1',
85
- identity: 'https://identity-b-us.webex.com',
86
- janus: 'https://janus-intb.ciscospark.com/janus/api/v1',
87
- wdm: 'https://wdm-a.wbx2.com/wdm/api/v1',
88
- broadworksIdpProxy: 'https://broadworks-idp-proxy-a.wbx2.com/broadworks-idp-proxy/api/v1',
89
- hydra: 'https://hydra-a.wbx2.com/v1/',
90
- mercuryApi: 'https://mercury-api-intb.ciscospark.com/v1',
91
- 'ucmgmt-gateway': 'https://gw.telemetry.int-ucmgmt.cisco.com',
92
- contactsService: 'https://contacts-service-a.wbx2.com/contact/api/v1',
93
- directorySearch: 'https://directory-search-a.wbx2.com/direcory-search/api/v1/'
94
- },
95
- fetchClientRegionInfo: jest.fn()
96
- }
97
- },
98
- // public plugins
99
- logger: {
100
- log: jest.fn(),
101
- error: jest.fn(),
102
- warn: jest.fn(),
103
- trace: jest.fn(),
104
- info: jest.fn(),
105
- debug: jest.fn()
106
- },
107
- messages: null,
108
- memberships: null,
109
- people: {
110
- list: jest.fn()
111
- },
112
- rooms: null,
113
- teams: null
114
- };
115
- }
116
- var registration = {
117
- triggerRegistration: function triggerRegistration() {
118
- return jest.fn();
119
- }
120
- };
121
- exports.registration = registration;
122
- var mediaConnection = new MediaSDKMock.RoapMediaConnection({}, {
123
- localTracks: {},
124
- direction: {
125
- audio: 'sendrecv',
126
- video: 'sendrecv',
127
- screenShareVideo: 'sendrecv'
128
- }
129
- }, '');
130
-
131
- /**
132
- * @param count - Number of Promises to flush.
133
- */
134
- exports.mediaConnection = mediaConnection;
135
- var flushPromises = /*#__PURE__*/function () {
136
- var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(count) {
137
- return _regenerator.default.wrap(function _callee$(_context) {
138
- while (1) switch (_context.prev = _context.next) {
139
- case 0:
140
- _context.next = 2;
141
- return _promise.default.all((0, _toConsumableArray2.default)(Array(count)).map(function () {
142
- return _promise.default.resolve();
143
- }));
144
- case 2:
145
- case "end":
146
- return _context.stop();
147
- }
148
- }, _callee);
149
- }));
150
- return function flushPromises(_x) {
151
- return _ref.apply(this, arguments);
152
- };
153
- }();
154
- exports.flushPromises = flushPromises;
155
- var mockCallingClient = {
156
- emit: jest.fn(),
157
- register: jest.fn(),
158
- on: jest.fn(),
159
- off: jest.fn()
160
- };
161
- exports.mockCallingClient = mockCallingClient;
162
- var getMockRequestTemplate = function getMockRequestTemplate() {
163
- return {
164
- headers: {
165
- 'cisco-device-url': 'https://wdm-intb.ciscospark.com/wdm/api/v1/devices/c5ae3b86-1bb7-40f1-a6a9-c296ee7e61d5',
166
- 'spark-user-agent': 'web-calling-sdk/1.71.1 (web-calling)'
167
- },
168
- service: 'mobius'
169
- };
170
- };
171
- exports.getMockRequestTemplate = getMockRequestTemplate;
172
- var getMobiusDiscoveryResponse = function getMobiusDiscoveryResponse() {
173
- return {
174
- primary: {
175
- region: 'US-EAST',
176
- uris: ['https://mobius-dfw.webex.com/api/v1']
177
- },
178
- backup: {
179
- region: 'US-WEST',
180
- uris: ['https://mobius-sjc.webex.com/api/v1']
181
- }
182
- };
183
- };
184
-
185
- /**
186
- * Returns a mocked deviceInfo object.
187
- */
188
- exports.getMobiusDiscoveryResponse = getMobiusDiscoveryResponse;
189
- var getMockDeviceInfo = function getMockDeviceInfo() {
190
- return {
191
- device: {
192
- deviceId: 'beb3c025-8c6a-3c44-8f3d-9b7d65363ac1',
193
- uri: 'https://mobius.aintgen-a-1.int.infra.webex.com/api/v1/calling/web/devices/beb3c025-8c6a-3c44-8f3d-9b7d65363ac1',
194
- status: 'active',
195
- lastSeen: '2022-04-05T05:08:46Z',
196
- addresses: ['sip:pbs9p4cbr9_G6JJNI5DD5NP@64941297.int10.bcld.webex.com'],
197
- clientDeviceUri: 'https://clientDeviceUrl'
198
- }
199
- };
200
- };
201
-
202
- /**
203
- * Returns a sample SCIM response object.
204
- */
205
- exports.getMockDeviceInfo = getMockDeviceInfo;
206
- var getSampleScimResponse = function getSampleScimResponse() {
207
- var sampleAvatar = 'https://avatar-int-us-east-1.webexcontent.com/Avtr~V1~1704d30d-a131-4bc7-9449-948487643793/V1~bf911e86a1561896d7d0053b46a8d0c9ed82a7bc434a1f84621c2c45cc825f37~3720694b1e4340818a3d12d70eb2b6e1~80';
208
- return {
209
- totalResults: '1',
210
- itemsPerPage: '1',
211
- startIndex: '1',
212
- schemas: ['urn:scim:schemas:core:1.0', 'urn:scim:schemas:extension:cisco:commonidentity:1.0'],
213
- Resources: [{
214
- userName: 'atlas.test.wxcwebrtc+user8@gmail.com',
215
- emails: [{
216
- primary: true,
217
- type: 'work',
218
- value: 'atlas.test.wxcwebrtc+user8@gmail.com'
219
- }],
220
- name: {
221
- givenName: 'Cathy',
222
- familyName: 'James'
223
- },
224
- phoneNumbers: [{
225
- primary: false,
226
- type: 'personal',
227
- value: '5009'
228
- }, {
229
- primary: true,
230
- type: 'work',
231
- value: '5008'
232
- }],
233
- entitlements: ['basic-meeting', 'basic-message', 'bc-sp-standard', 'screen-share', 'spark', 'spark-test-account', 'squared-call-initiation', 'webex-squared'],
234
- cisSyncSource: 'SCIM',
235
- photos: [{
236
- type: 'photo',
237
- value: sampleAvatar
238
- }, {
239
- type: 'thumbnail',
240
- value: sampleAvatar
241
- }],
242
- id: '652fe0c7-05ce-4acd-8bda-9a080830187f',
243
- meta: {
244
- created: '2022-03-16T16:13:53.847Z',
245
- lastModified: '2022-05-31T14:39:12.782Z',
246
- lastLoginTime: '2022-05-31T14:39:12.780Z',
247
- version: 'W/"66025591113"',
248
- location: 'https://identitybts.webex.com/identity/scim/1704d30d-a131-4bc7-9449-948487643793/v1/Users/652fe0c7-05ce-4acd-8bda-9a080830187f',
249
- organizationID: '1704d30d-a131-4bc7-9449-948487643793',
250
- creator: '97fe25e3-d3e8-400e-856b-5b0cd5b0c790',
251
- modifier: '8c7abf2f-0c8e-49cf-b8e4-693d4ec7daee'
252
- },
253
- displayName: 'Cathy',
254
- active: true,
255
- licenseID: ['BCSTD_8c81f40c-e848-484e-8ca8-0fb6dabc75a5'],
256
- userSettings: ['{"spark.signUpDate":"1648547902173"}', '{"user-origin":"admin-invited"}'],
257
- sipAddresses: [{
258
- type: 'cloud-calling',
259
- value: 'atlas.test.wxcwebrtc+user8@webrtcmobius.call.wbx2.com',
260
- primary: true
261
- }],
262
- isTeamsOnJabberEnabled: false,
263
- isUCCallOnJabberEnabled: false,
264
- userType: 'user',
265
- mfaEnabled: false,
266
- teamsClusterId: 'urn:TEAM:us-east-1_int13'
267
- }]
268
- };
269
- };
270
-
271
- /**
272
- * Returns a sample people list response object.
273
- */
274
- exports.getSampleScimResponse = getSampleScimResponse;
275
- var getSamplePeopleListResponse = function getSamplePeopleListResponse() {
276
- // cSpell:disable
277
- return {
278
- notFoundIds: null,
279
- items: [{
280
- id: 'Y2lzY29zcGFyazovL3VzL1BFT1BMRS9iODUzYmJkMS0xMTM2LTRkMjUtOTM4ZC0wYzM3NTMxYjEyMzM',
281
- emails: ['atlas.test.wxcwebrtc+user2@gmail.com'],
282
- phoneNumbers: [{
283
- type: 'work',
284
- value: '+12142865899'
285
- }, {
286
- type: 'work',
287
- value: '+12142865890'
288
- }],
289
- displayName: 'Krishna Kumar Rai',
290
- nickName: 'Krishna Kumar',
291
- firstName: 'Krishna Kumar',
292
- lastName: 'Rai',
293
- avatar: 'https://avatar-int-us-east-1.webexcontent.com/Avtr~V1~1704d30d-a131-4bc7-9449-948487643793/V1~63bb91536457f9b7d88739ae7cf78515800e468e0a4b59491b9c85b174c26eec~f10e91b5c0c0465ca8098f075ddec0b8~1600',
294
- orgId: 'Y2lzY29zcGFyazovL3VzL09SR0FOSVpBVElPTi8xNzA0ZDMwZC1hMTMxLTRiYzctOTQ0OS05NDg0ODc2NDM3OTM',
295
- created: '2022-03-16T14:07:21.266Z',
296
- lastModified: '2023-01-16T11:10:40.693Z',
297
- lastActivity: '2023-01-27T08:21:06.988Z',
298
- status: 'inactive',
299
- type: 'person'
300
- }]
301
- };
302
- // cSpell:enable
303
- };
304
-
305
- /**
306
- * Returns webrtc stats in raw and parsed format
307
- * statsWithVoOneWayDelayAndNw: raw & parsed,
308
- * statsWithoutVoOneWayDelayAndNw: raw & parsed.
309
- */
310
- exports.getSamplePeopleListResponse = getSamplePeopleListResponse;
311
- var getSampleRawAndParsedMediaStats = function getSampleRawAndParsedMediaStats() {
312
- return {
313
- statsWithVoOneWayDelayAndNw: {
314
- raw: [{
315
- id: 'CF83:C5:E4:93:FE:3B:4A:A4:34:F3:E7:84:80:2A:A6:1F:BF:CA:AE:48:98:5F:9E:14:32:8E:EC:7E:FA:EB:71:D9',
316
- timestamp: 1680187470045.045,
317
- type: 'certificate',
318
- fingerprint: '83:C5:E4:93:FE:3B:4A:A4:34:F3:E7:84:80:2A:A6:1F:BF:CA:AE:48:98:5F:9E:14:32:8E:EC:7E:FA:EB:71:D9',
319
- fingerprintAlgorithm: 'sha-256',
320
- base64Certificate: 'MIIBFTCBvKADAgECAgg7QZ5hqSYvvjAKBggqhkjOPQQDAjARMQ8wDQYDVQQDDAZXZWJSVEMwHhcNMjMwMzI5MTQ0NDAzWhcNMjMwNDI5MTQ0NDAzWjARMQ8wDQYDVQQDDAZXZWJSVEMwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQmOwLsh05ty2dg9Z4lMP0eGKOEXiYK0aD7R6t9ZhmQGsnXOoJo6uI9PPep6KtwXu8gmsNgpWCFXchYqCXUc9XLMAoGCCqGSM49BAMCA0gAMEUCIAzhwwwBNgeoGDdmuP+E6bxa+jPCpUNxAojCvva483GQAiEAm1sV7ObKt0SWAxzYk4hBw3anywSTUb/mRmrqpctykPU='
321
- }, {
322
- id: 'CFE6:62:7C:70:64:BA:49:37:F7:66:64:53:B7:80:14:DC:03:D0:70:E2',
323
- timestamp: 1680187470045.045,
324
- type: 'certificate',
325
- fingerprint: 'E6:62:7C:70:64:BA:49:37:F7:66:64:53:B7:80:14:DC:03:D0:70:E2',
326
- fingerprintAlgorithm: 'sha-1',
327
- base64Certificate: 'MIIBrTCCAVMCAQEwCQYHKoZIzj0EATBjMQswCQYDVQQGEwJYWDEcMBoGA1UECgwTRGVmYXVsdCBDb21wYW55IEx0ZDE2MDQGA1UEAwwtbWVkaWEtcG9vbDAud2Rmd3d4Yy1pbnQtMi5pbnQuaW5mcmEud2ViZXguY29tMB4XDTIzMDMzMDEyMDg1M1oXDTMzMDMyNzEyMDg1M1owYzELMAkGA1UEBhMCWFgxHDAaBgNVBAoME0RlZmF1bHQgQ29tcGFueSBMdGQxNjA0BgNVBAMMLW1lZGlhLXBvb2wwLndkZnd3eGMtaW50LTIuaW50LmluZnJhLndlYmV4LmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLxQbeY82wxCshXKWPfwPAD3aDF2oA5yvHnXAWBGHSO+yIqyEb5gOpoTgDNNrWerEQmjZQ0FeFAWv062KTS9FOIwCQYHKoZIzj0EAQNJADBGAiEA23zp5TJYq5OXFfOEc3ds0LHDyt7KQCLTItBJgXKik9oCIQCCA0qyNKx1v+AOtnkgDbBFjVArLF/5Sd3TIXMgc4VsnA=='
328
- }, {
329
- id: 'CIT01_111_minPtime=10;useInbandFec=1',
330
- timestamp: 1680187470045.045,
331
- type: 'codec',
332
- transportId: 'T01',
333
- payloadType: 111,
334
- mimeType: 'audio/opus',
335
- clockRate: 48000,
336
- channels: 2,
337
- sdpFmtpLine: 'minPtime=10;useInbandFec=1'
338
- }, {
339
- id: 'COT01_111_minPtime=10;useInbandFec=1',
340
- timestamp: 1680187470045.045,
341
- type: 'codec',
342
- transportId: 'T01',
343
- payloadType: 111,
344
- mimeType: 'audio/opus',
345
- clockRate: 48000,
346
- channels: 2,
347
- sdpFmtpLine: 'minPtime=10;useInbandFec=1'
348
- }, {
349
- id: 'RTCIceCandidatePair_CPg7Va+n9f_xvQ5iqnX',
350
- timestamp: 1680187470045.045,
351
- type: 'candidate-pair',
352
- transportId: 'T01',
353
- localCandidateId: 'RTCIceCandidate_Ig7Va+n9f',
354
- remoteCandidateId: 'IxvQ5iqnX',
355
- state: 'succeeded',
356
- priority: 9114756780671369000,
357
- nominated: true,
358
- writable: true,
359
- packetsSent: 1036,
360
- packetsReceived: 1015,
361
- bytesSent: 103064,
362
- bytesReceived: 100460,
363
- totalRoundTripTime: 3.611,
364
- currentRoundTripTime: 0.303,
365
- availableOutgoingBitrate: 300000,
366
- requestsReceived: 0,
367
- requestsSent: 12,
368
- responsesReceived: 12,
369
- responsesSent: 0,
370
- consentRequestsSent: 9,
371
- packetsDiscardedOnSend: 0,
372
- bytesDiscardedOnSend: 0
373
- }, {
374
- id: 'DEPRECATED_S_default',
375
- timestamp: 1680187470045.045,
376
- type: 'stream',
377
- streamIdentifier: 'default',
378
- trackIds: ['DEPRECATED_TI2']
379
- }, {
380
- id: 'DEPRECATED_TI2',
381
- timestamp: 1680187470045.045,
382
- type: 'track',
383
- trackIdentifier: '22012ddf-1185-4f85-978c-b71bcabe347e',
384
- remoteSource: true,
385
- ended: false,
386
- detached: false,
387
- kind: 'audio',
388
- jitterBufferDelay: 84508.8,
389
- jitterBufferEmittedCount: 958080,
390
- audioLevel: 0.004272591326639607,
391
- totalAudioEnergy: 0.6976435552354842,
392
- totalSamplesReceived: 987200,
393
- totalSamplesDuration: 21.480000000000558,
394
- concealedSamples: 27623,
395
- silentConcealedSamples: 21400,
396
- concealmentEvents: 8,
397
- insertedSamplesForDeceleration: 3844,
398
- removedSamplesForAcceleration: 2129
399
- }, {
400
- id: 'DEPRECATED_TO1',
401
- timestamp: 1680187470045.045,
402
- type: 'track',
403
- trackIdentifier: '1fc9f3fc-358e-4434-ba18-10b89e8a118f',
404
- mediaSourceId: 'SA1',
405
- remoteSource: false,
406
- ended: false,
407
- detached: false,
408
- kind: 'audio',
409
- echoReturnLoss: 13.656129837036133,
410
- echoReturnLossEnhancement: 7.137247085571289
411
- }, {
412
- id: 'DEPRECATED_VO1',
413
- timestamp: 1680187470045.045,
414
- type: 'local-candidate',
415
- transportId: 'T01',
416
- isRemote: false,
417
- networkType: 'vpn',
418
- ip: '10.227.211.139',
419
- address: '10.227.211.139',
420
- port: 9,
421
- protocol: 'tcp',
422
- candidateType: 'host',
423
- priority: 1518214911,
424
- foundation: '2654339674',
425
- usernameFragment: 'V+QJ',
426
- tcpType: 'active'
427
- }, {
428
- id: 'IKm2fnMou',
429
- timestamp: 1680187470045.045,
430
- type: 'local-candidate',
431
- transportId: 'T01',
432
- isRemote: false,
433
- networkType: 'wifi',
434
- ip: '192.168.1.65',
435
- address: '192.168.1.65',
436
- port: 9,
437
- protocol: 'tcp',
438
- candidateType: 'host',
439
- priority: 1518280447,
440
- foundation: '1437462698',
441
- usernameFragment: 'V+QJ',
442
- tcpType: 'active'
443
- }, {
444
- id: 'IT01A1746541880',
445
- timestamp: 1680187470045.045,
446
- type: 'inbound-rtp',
447
- ssrc: 1746541880,
448
- kind: 'audio',
449
- trackId: 'DEPRECATED_TI2',
450
- transportId: 'T01',
451
- codecId: 'CIT01_111_minPtime=10;useInbandFec=1',
452
- mediaType: 'audio',
453
- jitter: 0.008,
454
- packetsLost: 3,
455
- trackIdentifier: '22012ddf-1185-4f85-978c-b71bcabe347e',
456
- mid: '0',
457
- remoteId: 'ROA1746541880',
458
- packetsReceived: 1003,
459
- packetsDiscarded: 0,
460
- fecPacketsReceived: 0,
461
- fecPacketsDiscarded: 0,
462
- bytesReceived: 76880,
463
- headerBytesReceived: 12036,
464
- lastPacketReceivedTimestamp: 1680187470035,
465
- jitterBufferDelay: 84508.8,
466
- jitterBufferTargetDelay: 92793.6,
467
- jitterBufferMinimumDelay: 92640,
468
- jitterBufferEmittedCount: 958080,
469
- totalSamplesReceived: 987200,
470
- concealedSamples: 27623,
471
- silentConcealedSamples: 21400,
472
- concealmentEvents: 8,
473
- insertedSamplesForDeceleration: 3844,
474
- removedSamplesForAcceleration: 2129,
475
- audioLevel: 0.004272591326639607,
476
- totalAudioEnergy: 0.6976435552354842,
477
- totalSamplesDuration: 21.480000000000558
478
- }, {
479
- id: 'IUzJLjNLE',
480
- timestamp: 1680187470045.045,
481
- type: 'local-candidate',
482
- transportId: 'T01',
483
- isRemote: false,
484
- networkType: 'wifi',
485
- ip: '192.168.1.65',
486
- address: '192.168.1.65',
487
- port: 58574,
488
- protocol: 'udp',
489
- candidateType: 'host',
490
- priority: 2122260223,
491
- foundation: '727847474',
492
- usernameFragment: 'V+QJ'
493
- }, {
494
- id: 'RTCIceCandidate_Ig7Va+n9f',
495
- timestamp: 1680187470045.045,
496
- type: 'local-candidate',
497
- transportId: 'T01',
498
- isRemote: false,
499
- networkType: 'vpn',
500
- ip: '10.227.211.139',
501
- address: '10.227.211.139',
502
- port: 64898,
503
- protocol: 'udp',
504
- candidateType: 'host',
505
- priority: 2122194687,
506
- foundation: '3774472386',
507
- usernameFragment: 'V+QJ'
508
- }, {
509
- id: 'IxvQ5iqnX',
510
- timestamp: 1680187470045.045,
511
- type: 'remote-candidate',
512
- transportId: 'T01',
513
- isRemote: true,
514
- ip: '207.182.171.180',
515
- address: '207.182.171.180',
516
- port: 19608,
517
- protocol: 'udp',
518
- candidateType: 'host',
519
- priority: 2130706431,
520
- foundation: 'mse',
521
- usernameFragment: 'S3cv'
522
- }, {
523
- id: 'OT01A2728789632',
524
- timestamp: 1680187470045.045,
525
- type: 'outbound-rtp',
526
- ssrc: 2728789632,
527
- kind: 'audio',
528
- trackId: 'DEPRECATED_TO1',
529
- transportId: 'T01',
530
- codecId: 'COT01_111_minPtime=10;useInbandFec=1',
531
- mediaType: 'audio',
532
- mediaSourceId: 'SA1',
533
- remoteId: 'RIA2728789632',
534
- mid: '0',
535
- packetsSent: 1026,
536
- retransmittedPacketsSent: 0,
537
- bytesSent: 79294,
538
- headerBytesSent: 12312,
539
- retransmittedBytesSent: 0,
540
- targetBitrate: 32000,
541
- nackCount: 0,
542
- active: true
543
- }, {
544
- id: 'P',
545
- timestamp: 1680187470045.045,
546
- type: 'peer-connection',
547
- dataChannelsOpened: 0,
548
- dataChannelsClosed: 0
549
- }, {
550
- id: 'RIA2728789632',
551
- timestamp: 1680187469719,
552
- type: 'remote-inbound-rtp',
553
- ssrc: 2728789632,
554
- kind: 'audio',
555
- transportId: 'T01',
556
- codecId: 'COT01_111_minPtime=10;useInbandFec=1',
557
- jitter: 0.0055625,
558
- packetsLost: 0,
559
- localId: 'OT01A2728789632',
560
- roundTripTime: 0.665,
561
- fractionLost: 0,
562
- totalRoundTripTime: 2.509,
563
- roundTripTimeMeasurements: 4
564
- }, {
565
- id: 'ROA1746541880',
566
- timestamp: 1680187467829,
567
- type: 'remote-outbound-rtp',
568
- ssrc: 1746541880,
569
- kind: 'audio',
570
- transportId: 'T01',
571
- codecId: 'CIT01_111_minPtime=10;useInbandFec=1',
572
- packetsSent: 895,
573
- bytesSent: 68669,
574
- localId: 'IT01A1746541880',
575
- remoteTimestamp: 1680187467378,
576
- reportsSent: 5,
577
- roundTripTimeMeasurements: 0,
578
- totalRoundTripTime: 0
579
- }, {
580
- id: 'SA1',
581
- timestamp: 1680187470045.045,
582
- type: 'media-source',
583
- trackIdentifier: '1fc9f3fc-358e-4434-ba18-10b89e8a118f',
584
- kind: 'audio',
585
- audioLevel: 0.006469924008911405,
586
- totalAudioEnergy: 0.7681144799128602,
587
- totalSamplesDuration: 26.650000000001366,
588
- echoReturnLoss: 13.656129837036133,
589
- echoReturnLossEnhancement: 7.137247085571289
590
- }, {
591
- id: 'T01',
592
- timestamp: 1680187470045.045,
593
- type: 'transport',
594
- bytesSent: 103064,
595
- packetsSent: 1036,
596
- bytesReceived: 100460,
597
- packetsReceived: 1015,
598
- dtlsState: 'connected',
599
- selectedCandidatePairId: 'RTCIceCandidatePair_CPg7Va+n9f_xvQ5iqnX',
600
- localCertificateId: 'CF83:C5:E4:93:FE:3B:4A:A4:34:F3:E7:84:80:2A:A6:1F:BF:CA:AE:48:98:5F:9E:14:32:8E:EC:7E:FA:EB:71:D9',
601
- remoteCertificateId: 'CFE6:62:7C:70:64:BA:49:37:F7:66:64:53:B7:80:14:DC:03:D0:70:E2',
602
- tlsVersion: 'tls1.2',
603
- dtlsCipher: 'TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256',
604
- dtlsRole: 'client',
605
- srtpCipher: 'AES_CM_128_HMAC_SHA1_80',
606
- selectedCandidatePairChanges: 1,
607
- iceRole: 'controlling',
608
- iceLocalUsernameFragment: 'V+QJ',
609
- iceState: 'connected'
610
- }],
611
- parsed: {
612
- 'rtp-rxstat': {
613
- LostPkt: 3,
614
- Pkt: 1003,
615
- LatePkt: 0,
616
- Oct: 76880,
617
- Dur: 26.650000000001366,
618
- AvgJit: 0.08820641282565131,
619
- VQMetrics: {
620
- maxJitter: 0,
621
- VoPktSizeMs: 20,
622
- VoOneWayDelayMs: 0.313625,
623
- hwType: "".concat(_platform.default.os, "/").concat(_platform.default.name, "-").concat(_platform.default.version),
624
- networkType: 'vpn',
625
- VoRxCodec: 'opus'
626
- }
627
- },
628
- 'rtp-txstat': {
629
- Pkt: 1026,
630
- Oct: 79294,
631
- Dur: 26.650000000001366,
632
- VQMetrics: {
633
- VoTxCodec: 'opus',
634
- rtpBitRate: 32000
635
- }
636
- }
637
- }
638
- },
639
- statsWithoutVoOneWayDelayAndNw: {
640
- raw: [{
641
- id: 'CF83:C5:E4:93:FE:3B:4A:A4:34:F3:E7:84:80:2A:A6:1F:BF:CA:AE:48:98:5F:9E:14:32:8E:EC:7E:FA:EB:71:D9',
642
- timestamp: 1680187470045.045,
643
- type: 'certificate',
644
- fingerprint: '83:C5:E4:93:FE:3B:4A:A4:34:F3:E7:84:80:2A:A6:1F:BF:CA:AE:48:98:5F:9E:14:32:8E:EC:7E:FA:EB:71:D9',
645
- fingerprintAlgorithm: 'sha-256',
646
- base64Certificate: 'MIIBFTCBvKADAgECAgg7QZ5hqSYvvjAKBggqhkjOPQQDAjARMQ8wDQYDVQQDDAZXZWJSVEMwHhcNMjMwMzI5MTQ0NDAzWhcNMjMwNDI5MTQ0NDAzWjARMQ8wDQYDVQQDDAZXZWJSVEMwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQmOwLsh05ty2dg9Z4lMP0eGKOEXiYK0aD7R6t9ZhmQGsnXOoJo6uI9PPep6KtwXu8gmsNgpWCFXchYqCXUc9XLMAoGCCqGSM49BAMCA0gAMEUCIAzhwwwBNgeoGDdmuP+E6bxa+jPCpUNxAojCvva483GQAiEAm1sV7ObKt0SWAxzYk4hBw3anywSTUb/mRmrqpctykPU='
647
- }, {
648
- id: 'CFE6:62:7C:70:64:BA:49:37:F7:66:64:53:B7:80:14:DC:03:D0:70:E2',
649
- timestamp: 1680187470045.045,
650
- type: 'certificate',
651
- fingerprint: 'E6:62:7C:70:64:BA:49:37:F7:66:64:53:B7:80:14:DC:03:D0:70:E2',
652
- fingerprintAlgorithm: 'sha-1',
653
- base64Certificate: 'MIIBrTCCAVMCAQEwCQYHKoZIzj0EATBjMQswCQYDVQQGEwJYWDEcMBoGA1UECgwTRGVmYXVsdCBDb21wYW55IEx0ZDE2MDQGA1UEAwwtbWVkaWEtcG9vbDAud2Rmd3d4Yy1pbnQtMi5pbnQuaW5mcmEud2ViZXguY29tMB4XDTIzMDMzMDEyMDg1M1oXDTMzMDMyNzEyMDg1M1owYzELMAkGA1UEBhMCWFgxHDAaBgNVBAoME0RlZmF1bHQgQ29tcGFueSBMdGQxNjA0BgNVBAMMLW1lZGlhLXBvb2wwLndkZnd3eGMtaW50LTIuaW50LmluZnJhLndlYmV4LmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLxQbeY82wxCshXKWPfwPAD3aDF2oA5yvHnXAWBGHSO+yIqyEb5gOpoTgDNNrWerEQmjZQ0FeFAWv062KTS9FOIwCQYHKoZIzj0EAQNJADBGAiEA23zp5TJYq5OXFfOEc3ds0LHDyt7KQCLTItBJgXKik9oCIQCCA0qyNKx1v+AOtnkgDbBFjVArLF/5Sd3TIXMgc4VsnA=='
654
- }, {
655
- id: 'CIT01_111_minPtime=10;useInbandFec=1',
656
- timestamp: 1680187470045.045,
657
- type: 'codec',
658
- transportId: 'T01',
659
- payloadType: 111,
660
- mimeType: 'audio/opus',
661
- clockRate: 48000,
662
- channels: 2,
663
- sdpFmtpLine: 'minPtime=10;useInbandFec=1'
664
- }, {
665
- id: 'COT01_111_minPtime=10;useInbandFec=1',
666
- timestamp: 1680187470045.045,
667
- type: 'codec',
668
- transportId: 'T01',
669
- payloadType: 111,
670
- mimeType: 'audio/opus',
671
- clockRate: 48000,
672
- channels: 2,
673
- sdpFmtpLine: 'minPtime=10;useInbandFec=1'
674
- }, {
675
- id: 'CPg7Va+n9f_xvQ5iqnX',
676
- timestamp: 1680187470045.045,
677
- type: 'candidate-pair',
678
- transportId: 'T01',
679
- localCandidateId: 'Ig7Va+n9f',
680
- remoteCandidateId: 'IxvQ5iqnX',
681
- state: 'succeeded',
682
- priority: 9114756780671369000,
683
- nominated: true,
684
- writable: true,
685
- packetsSent: 1036,
686
- packetsReceived: 1015,
687
- bytesSent: 103064,
688
- bytesReceived: 100460,
689
- totalRoundTripTime: 3.611,
690
- currentRoundTripTime: 0.303,
691
- availableOutgoingBitrate: 300000,
692
- requestsReceived: 0,
693
- requestsSent: 12,
694
- responsesReceived: 12,
695
- responsesSent: 0,
696
- consentRequestsSent: 9,
697
- packetsDiscardedOnSend: 0,
698
- bytesDiscardedOnSend: 0
699
- }, {
700
- id: 'DEPRECATED_S_default',
701
- timestamp: 1680187470045.045,
702
- type: 'stream',
703
- streamIdentifier: 'default',
704
- trackIds: ['DEPRECATED_TI2']
705
- }, {
706
- id: 'DEPRECATED_TI2',
707
- timestamp: 1680187470045.045,
708
- type: 'track',
709
- trackIdentifier: '22012ddf-1185-4f85-978c-b71bcabe347e',
710
- remoteSource: true,
711
- ended: false,
712
- detached: false,
713
- kind: 'audio',
714
- jitterBufferDelay: 84508.8,
715
- jitterBufferEmittedCount: 958080,
716
- audioLevel: 0.004272591326639607,
717
- totalAudioEnergy: 0.6976435552354842,
718
- totalSamplesReceived: 987200,
719
- totalSamplesDuration: 21.480000000000558,
720
- concealedSamples: 27623,
721
- silentConcealedSamples: 21400,
722
- concealmentEvents: 8,
723
- insertedSamplesForDeceleration: 3844,
724
- removedSamplesForAcceleration: 2129
725
- }, {
726
- id: 'DEPRECATED_TO1',
727
- timestamp: 1680187470045.045,
728
- type: 'track',
729
- trackIdentifier: '1fc9f3fc-358e-4434-ba18-10b89e8a118f',
730
- mediaSourceId: 'SA1',
731
- remoteSource: false,
732
- ended: false,
733
- detached: false,
734
- kind: 'audio',
735
- echoReturnLoss: 13.656129837036133,
736
- echoReturnLossEnhancement: 7.137247085571289
737
- }, {
738
- id: 'DEPRECATED_VO1',
739
- timestamp: 1680187470045.045,
740
- type: 'local-candidate',
741
- transportId: 'T01',
742
- isRemote: false,
743
- networkType: 'vpn',
744
- ip: '10.227.211.139',
745
- address: '10.227.211.139',
746
- port: 9,
747
- protocol: 'tcp',
748
- candidateType: 'host',
749
- priority: 1518214911,
750
- foundation: '2654339674',
751
- usernameFragment: 'V+QJ',
752
- tcpType: 'active'
753
- }, {
754
- id: 'IKm2fnMou',
755
- timestamp: 1680187470045.045,
756
- type: 'local-candidate',
757
- transportId: 'T01',
758
- isRemote: false,
759
- networkType: 'wifi',
760
- ip: '192.168.1.65',
761
- address: '192.168.1.65',
762
- port: 9,
763
- protocol: 'tcp',
764
- candidateType: 'host',
765
- priority: 1518280447,
766
- foundation: '1437462698',
767
- usernameFragment: 'V+QJ',
768
- tcpType: 'active'
769
- }, {
770
- id: 'IT01A1746541880',
771
- timestamp: 1680187470045.045,
772
- type: 'inbound-rtp',
773
- ssrc: 1746541880,
774
- kind: 'audio',
775
- trackId: 'DEPRECATED_TI2',
776
- transportId: 'T01',
777
- codecId: 'CIT01_111_minPtime=10;useInbandFec=1',
778
- mediaType: 'audio',
779
- jitter: 0.008,
780
- packetsLost: 3,
781
- trackIdentifier: '22012ddf-1185-4f85-978c-b71bcabe347e',
782
- mid: '0',
783
- remoteId: 'ROA1746541880',
784
- packetsReceived: 1003,
785
- packetsDiscarded: 0,
786
- fecPacketsReceived: 0,
787
- fecPacketsDiscarded: 0,
788
- bytesReceived: 76880,
789
- headerBytesReceived: 12036,
790
- lastPacketReceivedTimestamp: 1680187470035,
791
- jitterBufferDelay: 84508.8,
792
- jitterBufferTargetDelay: 92793.6,
793
- jitterBufferMinimumDelay: 92640,
794
- jitterBufferEmittedCount: 958080,
795
- totalSamplesReceived: 987200,
796
- concealedSamples: 27623,
797
- silentConcealedSamples: 21400,
798
- concealmentEvents: 8,
799
- insertedSamplesForDeceleration: 3844,
800
- removedSamplesForAcceleration: 2129,
801
- audioLevel: 0.004272591326639607,
802
- totalAudioEnergy: 0.6976435552354842,
803
- totalSamplesDuration: 21.480000000000558
804
- }, {
805
- id: 'IUzJLjNLE',
806
- timestamp: 1680187470045.045,
807
- type: 'local-candidate',
808
- transportId: 'T01',
809
- isRemote: false,
810
- networkType: 'wifi',
811
- ip: '192.168.1.65',
812
- address: '192.168.1.65',
813
- port: 58574,
814
- protocol: 'udp',
815
- candidateType: 'host',
816
- priority: 2122260223,
817
- foundation: '727847474',
818
- usernameFragment: 'V+QJ'
819
- }, {
820
- id: 'Ig7Va+n9f',
821
- timestamp: 1680187470045.045,
822
- type: 'local-candidate',
823
- transportId: 'T01',
824
- isRemote: false,
825
- networkType: 'vpn',
826
- ip: '10.227.211.139',
827
- address: '10.227.211.139',
828
- port: 64898,
829
- protocol: 'udp',
830
- candidateType: 'host',
831
- priority: 2122194687,
832
- foundation: '3774472386',
833
- usernameFragment: 'V+QJ'
834
- }, {
835
- id: 'IxvQ5iqnX',
836
- timestamp: 1680187470045.045,
837
- type: 'remote-candidate',
838
- transportId: 'T01',
839
- isRemote: true,
840
- ip: '207.182.171.180',
841
- address: '207.182.171.180',
842
- port: 19608,
843
- protocol: 'udp',
844
- candidateType: 'host',
845
- priority: 2130706431,
846
- foundation: 'mse',
847
- usernameFragment: 'S3cv'
848
- }, {
849
- id: 'OT01A2728789632',
850
- timestamp: 1680187470045.045,
851
- type: 'outbound-rtp',
852
- ssrc: 2728789632,
853
- kind: 'audio',
854
- trackId: 'DEPRECATED_TO1',
855
- transportId: 'T01',
856
- codecId: 'COT01_111_minPtime=10;useInbandFec=1',
857
- mediaType: 'audio',
858
- mediaSourceId: 'SA1',
859
- remoteId: 'RIA2728789632',
860
- mid: '0',
861
- packetsSent: 1026,
862
- retransmittedPacketsSent: 0,
863
- bytesSent: 79294,
864
- headerBytesSent: 12312,
865
- retransmittedBytesSent: 0,
866
- targetBitrate: 32000,
867
- nackCount: 0,
868
- active: true
869
- }, {
870
- id: 'P',
871
- timestamp: 1680187470045.045,
872
- type: 'peer-connection',
873
- dataChannelsOpened: 0,
874
- dataChannelsClosed: 0
875
- }, {
876
- id: 'RIA2728789632',
877
- timestamp: 1680187469719,
878
- type: 'remote-inbound-rtp',
879
- ssrc: 2728789632,
880
- kind: 'audio',
881
- transportId: 'T01',
882
- codecId: 'COT01_111_minPtime=10;useInbandFec=1',
883
- jitter: 0.0055625,
884
- packetsLost: 0,
885
- localId: 'OT01A2728789632',
886
- roundTripTime: 0.665,
887
- fractionLost: 0,
888
- totalRoundTripTime: 2.509,
889
- roundTripTimeMeasurements: 0
890
- }, {
891
- id: 'ROA1746541880',
892
- timestamp: 1680187467829,
893
- type: 'remote-outbound-rtp',
894
- ssrc: 1746541880,
895
- kind: 'audio',
896
- transportId: 'T01',
897
- codecId: 'CIT01_111_minPtime=10;useInbandFec=1',
898
- packetsSent: 895,
899
- bytesSent: 68669,
900
- localId: 'IT01A1746541880',
901
- remoteTimestamp: 1680187467378,
902
- reportsSent: 5,
903
- roundTripTimeMeasurements: 0,
904
- totalRoundTripTime: 0
905
- }, {
906
- id: 'SA1',
907
- timestamp: 1680187470045.045,
908
- type: 'media-source',
909
- trackIdentifier: '1fc9f3fc-358e-4434-ba18-10b89e8a118f',
910
- kind: 'audio',
911
- audioLevel: 0.006469924008911405,
912
- totalAudioEnergy: 0.7681144799128602,
913
- totalSamplesDuration: 26.650000000001366,
914
- echoReturnLoss: 13.656129837036133,
915
- echoReturnLossEnhancement: 7.137247085571289
916
- }, {
917
- id: 'T01',
918
- timestamp: 1680187470045.045,
919
- type: 'transport',
920
- bytesSent: 103064,
921
- packetsSent: 1036,
922
- bytesReceived: 100460,
923
- packetsReceived: 1015,
924
- dtlsState: 'connected',
925
- selectedCandidatePairId: 'CPg7Va+n9f_xvQ5iqnX',
926
- localCertificateId: 'CF83:C5:E4:93:FE:3B:4A:A4:34:F3:E7:84:80:2A:A6:1F:BF:CA:AE:48:98:5F:9E:14:32:8E:EC:7E:FA:EB:71:D9',
927
- remoteCertificateId: 'CFE6:62:7C:70:64:BA:49:37:F7:66:64:53:B7:80:14:DC:03:D0:70:E2',
928
- tlsVersion: 'tls1.2',
929
- dtlsCipher: 'TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256',
930
- dtlsRole: 'client',
931
- srtpCipher: 'AES_CM_128_HMAC_SHA1_80',
932
- selectedCandidatePairChanges: 1,
933
- iceRole: 'controlling',
934
- iceLocalUsernameFragment: 'V+QJ',
935
- iceState: 'connected'
936
- }],
937
- parsed: {
938
- 'rtp-rxstat': {
939
- LostPkt: 3,
940
- Pkt: 1003,
941
- LatePkt: 0,
942
- Oct: 76880,
943
- Dur: 26.650000000001366,
944
- AvgJit: 0.08820641282565131,
945
- VQMetrics: {
946
- maxJitter: 0,
947
- VoPktSizeMs: 20,
948
- VoOneWayDelayMs: 0,
949
- hwType: "".concat(_platform.default.os, "/").concat(_platform.default.name, "-").concat(_platform.default.version),
950
- networkType: undefined,
951
- VoRxCodec: 'opus'
952
- }
953
- },
954
- 'rtp-txstat': {
955
- Pkt: 1026,
956
- Oct: 79294,
957
- Dur: 26.650000000001366,
958
- VQMetrics: {
959
- VoTxCodec: 'opus',
960
- rtpBitRate: 32000
961
- }
962
- }
963
- }
964
- }
965
- };
966
- };
967
- exports.getSampleRawAndParsedMediaStats = getSampleRawAndParsedMediaStats;
968
- //# sourceMappingURL=testUtil.js.map