@webex/calling 3.11.0 → 3.12.0-mobius-socket.1

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