@webex/calling 3.11.0 → 3.12.0

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