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

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