@webex/calling 3.0.0-next.5 → 3.0.0-next.50

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