@webex/internal-plugin-metrics 3.0.0-beta.28 → 3.0.0-beta.280

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 (60) hide show
  1. package/dist/call-diagnostic/call-diagnostic-metrics-batcher.js +65 -0
  2. package/dist/call-diagnostic/call-diagnostic-metrics-batcher.js.map +1 -0
  3. package/dist/call-diagnostic/call-diagnostic-metrics-latencies.js +456 -0
  4. package/dist/call-diagnostic/call-diagnostic-metrics-latencies.js.map +1 -0
  5. package/dist/call-diagnostic/call-diagnostic-metrics.js +775 -0
  6. package/dist/call-diagnostic/call-diagnostic-metrics.js.map +1 -0
  7. package/dist/call-diagnostic/call-diagnostic-metrics.util.js +337 -0
  8. package/dist/call-diagnostic/call-diagnostic-metrics.util.js.map +1 -0
  9. package/dist/call-diagnostic/config.js +604 -0
  10. package/dist/call-diagnostic/config.js.map +1 -0
  11. package/dist/config.js +20 -1
  12. package/dist/config.js.map +1 -1
  13. package/dist/index.js +30 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/metrics.js +30 -30
  16. package/dist/metrics.js.map +1 -1
  17. package/dist/metrics.types.js +7 -0
  18. package/dist/metrics.types.js.map +1 -0
  19. package/dist/new-metrics.js +333 -0
  20. package/dist/new-metrics.js.map +1 -0
  21. package/dist/types/batcher.d.ts +2 -0
  22. package/dist/types/call-diagnostic/call-diagnostic-metrics-batcher.d.ts +2 -0
  23. package/dist/types/call-diagnostic/call-diagnostic-metrics-latencies.d.ts +194 -0
  24. package/dist/types/call-diagnostic/call-diagnostic-metrics.d.ts +395 -0
  25. package/dist/types/call-diagnostic/call-diagnostic-metrics.util.d.ts +96 -0
  26. package/dist/types/call-diagnostic/config.d.ts +171 -0
  27. package/dist/types/client-metrics-batcher.d.ts +2 -0
  28. package/dist/types/config.d.ts +35 -0
  29. package/dist/types/index.d.ts +13 -0
  30. package/dist/types/metrics.d.ts +3 -0
  31. package/dist/types/metrics.types.d.ts +103 -0
  32. package/dist/types/new-metrics.d.ts +139 -0
  33. package/dist/types/utils.d.ts +6 -0
  34. package/dist/utils.js +27 -0
  35. package/dist/utils.js.map +1 -0
  36. package/package.json +13 -8
  37. package/src/call-diagnostic/call-diagnostic-metrics-batcher.ts +82 -0
  38. package/src/call-diagnostic/call-diagnostic-metrics-latencies.ts +414 -0
  39. package/src/call-diagnostic/call-diagnostic-metrics.ts +843 -0
  40. package/src/call-diagnostic/call-diagnostic-metrics.util.ts +362 -0
  41. package/src/call-diagnostic/config.ts +660 -0
  42. package/src/config.js +19 -0
  43. package/src/index.ts +43 -0
  44. package/src/metrics.js +25 -27
  45. package/src/metrics.types.ts +159 -0
  46. package/src/new-metrics.ts +317 -0
  47. package/src/utils.ts +17 -0
  48. package/test/unit/spec/call-diagnostic/call-diagnostic-metrics-batcher.ts +394 -0
  49. package/test/unit/spec/call-diagnostic/call-diagnostic-metrics-latencies.ts +477 -0
  50. package/test/unit/spec/call-diagnostic/call-diagnostic-metrics.ts +1787 -0
  51. package/test/unit/spec/call-diagnostic/call-diagnostic-metrics.util.ts +565 -0
  52. package/test/unit/spec/metrics.js +65 -97
  53. package/test/unit/spec/new-metrics.ts +269 -0
  54. package/test/unit/spec/utils.ts +22 -0
  55. package/tsconfig.json +6 -0
  56. package/dist/call-diagnostic-events-batcher.js +0 -60
  57. package/dist/call-diagnostic-events-batcher.js.map +0 -1
  58. package/src/call-diagnostic-events-batcher.js +0 -62
  59. package/src/index.js +0 -17
  60. package/test/unit/spec/call-diagnostic-events-batcher.js +0 -195
@@ -0,0 +1,604 @@
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.WBX_APP_API_URL = exports.UNKNOWN_ERROR = exports.SERVICE_ERROR_CODES_TO_CLIENT_ERROR_CODES_MAP = exports.NEW_LOCUS_ERROR_CLIENT_CODE = exports.NETWORK_ERROR = exports.MISSING_ROAP_ANSWER_CLIENT_CODE = exports.MEETING_INFO_LOOKUP_ERROR_CLIENT_CODE = exports.ICE_FAILURE_CLIENT_CODE = exports.ICE_FAILED_WITH_TURN_TLS_CLIENT_CODE = exports.ICE_FAILED_WITHOUT_TURN_TLS_CLIENT_CODE = exports.ERROR_DESCRIPTIONS = exports.DTLS_HANDSHAKE_FAILED_CLIENT_CODE = exports.CLIENT_ERROR_CODE_TO_ERROR_PAYLOAD = exports.CALL_DIAGNOSTIC_LOG_IDENTIFIER = exports.CALL_DIAGNOSTIC_EVENT_FAILED_TO_SEND = exports.BROWSER_MEDIA_ERROR_NAME_TO_CLIENT_ERROR_CODES_MAP = exports.AUTHENTICATION_FAILED_CODE = void 0;
9
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
10
+ var _BROWSER_MEDIA_ERROR_, _CLIENT_ERROR_CODE_TO;
11
+ /* eslint-disable import/prefer-default-export */
12
+ // Most client error codes are mapped based on
13
+ // https://sqbu-github.cisco.com/WebExSquared/event-dictionary/wiki/Error-codes-for-metric-events
14
+
15
+ var CALL_DIAGNOSTIC_LOG_IDENTIFIER = 'call-diagnostic-events -> ';
16
+ exports.CALL_DIAGNOSTIC_LOG_IDENTIFIER = CALL_DIAGNOSTIC_LOG_IDENTIFIER;
17
+ var AUTHENTICATION_FAILED_CODE = 1010;
18
+ exports.AUTHENTICATION_FAILED_CODE = AUTHENTICATION_FAILED_CODE;
19
+ var NETWORK_ERROR = 1026;
20
+ exports.NETWORK_ERROR = NETWORK_ERROR;
21
+ var NEW_LOCUS_ERROR_CLIENT_CODE = 4008;
22
+ exports.NEW_LOCUS_ERROR_CLIENT_CODE = NEW_LOCUS_ERROR_CLIENT_CODE;
23
+ var MEETING_INFO_LOOKUP_ERROR_CLIENT_CODE = 4100;
24
+ exports.MEETING_INFO_LOOKUP_ERROR_CLIENT_CODE = MEETING_INFO_LOOKUP_ERROR_CLIENT_CODE;
25
+ var UNKNOWN_ERROR = 9999; // Unexpected error that is not a meetingInfo error, locus error or browser media error.
26
+ exports.UNKNOWN_ERROR = UNKNOWN_ERROR;
27
+ var ICE_FAILURE_CLIENT_CODE = 2004;
28
+ exports.ICE_FAILURE_CLIENT_CODE = ICE_FAILURE_CLIENT_CODE;
29
+ var MISSING_ROAP_ANSWER_CLIENT_CODE = 2007;
30
+ exports.MISSING_ROAP_ANSWER_CLIENT_CODE = MISSING_ROAP_ANSWER_CLIENT_CODE;
31
+ var DTLS_HANDSHAKE_FAILED_CLIENT_CODE = 2008;
32
+ exports.DTLS_HANDSHAKE_FAILED_CLIENT_CODE = DTLS_HANDSHAKE_FAILED_CLIENT_CODE;
33
+ var ICE_FAILED_WITH_TURN_TLS_CLIENT_CODE = 2010;
34
+ exports.ICE_FAILED_WITH_TURN_TLS_CLIENT_CODE = ICE_FAILED_WITH_TURN_TLS_CLIENT_CODE;
35
+ var ICE_FAILED_WITHOUT_TURN_TLS_CLIENT_CODE = 2009;
36
+ exports.ICE_FAILED_WITHOUT_TURN_TLS_CLIENT_CODE = ICE_FAILED_WITHOUT_TURN_TLS_CLIENT_CODE;
37
+ var WBX_APP_API_URL = 'wbxappapi'; // MeetingInfo WebexAppApi response object normally contains a body.url that includes the string 'wbxappapi'
38
+
39
+ // Found in https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia
40
+ exports.WBX_APP_API_URL = WBX_APP_API_URL;
41
+ var BROWSER_MEDIA_ERROR_NAMES = {
42
+ PERMISSION_DENIED_ERROR: 'PermissionDeniedError',
43
+ NOT_ALLOWED_ERROR: 'NotAllowedError',
44
+ NOT_READABLE_ERROR: 'NotReadableError',
45
+ ABORT_ERROR: 'AbortError',
46
+ NOT_FOUND_ERROR: 'NotFoundError',
47
+ OVERCONSTRAINED_ERROR: 'OverconstrainedError',
48
+ SECURITY_ERROR: 'SecurityError',
49
+ TYPE_ERROR: 'TypeError'
50
+ };
51
+ var BROWSER_MEDIA_ERROR_NAME_TO_CLIENT_ERROR_CODES_MAP = (_BROWSER_MEDIA_ERROR_ = {}, (0, _defineProperty2.default)(_BROWSER_MEDIA_ERROR_, BROWSER_MEDIA_ERROR_NAMES.PERMISSION_DENIED_ERROR, 4032), (0, _defineProperty2.default)(_BROWSER_MEDIA_ERROR_, BROWSER_MEDIA_ERROR_NAMES.NOT_ALLOWED_ERROR, 4032), (0, _defineProperty2.default)(_BROWSER_MEDIA_ERROR_, BROWSER_MEDIA_ERROR_NAMES.NOT_READABLE_ERROR, 2729), (0, _defineProperty2.default)(_BROWSER_MEDIA_ERROR_, BROWSER_MEDIA_ERROR_NAMES.ABORT_ERROR, 2729), (0, _defineProperty2.default)(_BROWSER_MEDIA_ERROR_, BROWSER_MEDIA_ERROR_NAMES.NOT_FOUND_ERROR, 2729), (0, _defineProperty2.default)(_BROWSER_MEDIA_ERROR_, BROWSER_MEDIA_ERROR_NAMES.OVERCONSTRAINED_ERROR, 2729), (0, _defineProperty2.default)(_BROWSER_MEDIA_ERROR_, BROWSER_MEDIA_ERROR_NAMES.SECURITY_ERROR, 2729), (0, _defineProperty2.default)(_BROWSER_MEDIA_ERROR_, BROWSER_MEDIA_ERROR_NAMES.TYPE_ERROR, 2729), _BROWSER_MEDIA_ERROR_);
52
+ exports.BROWSER_MEDIA_ERROR_NAME_TO_CLIENT_ERROR_CODES_MAP = BROWSER_MEDIA_ERROR_NAME_TO_CLIENT_ERROR_CODES_MAP;
53
+ var ERROR_DESCRIPTIONS = {
54
+ UNKNOWN_CALL_FAILURE: 'UnknownCallFailure',
55
+ LOCUS_RATE_LIMITED_INCOMING: 'LocusRateLimitedIncoming',
56
+ LOCUS_RATE_LIMITED_OUTGOING: 'LocusRateLimitedOutgoing',
57
+ LOCUS_UNAVAILABLE: 'LocusUnavailable',
58
+ LOCUS_CONFLICT: 'LocusConflict',
59
+ TIMEOUT: 'Timeout',
60
+ LOCUS_INVALID_SEQUENCE_HASH: 'LocusInvalidSequenceHash',
61
+ AUTHENTICATION_FAILED: 'AuthenticationFailed',
62
+ NETWORK_ERROR: 'NetworkError',
63
+ UPDATE_MEDIA_FAILED: 'UpdateMediaFailed',
64
+ FAILED_TO_CONNECT_MEDIA: 'FailedToConnectMedia',
65
+ MEDIA_ENGINE_LOST: 'MediaEngineLost',
66
+ MEDIA_CONNECTION_LOST: 'MediaConnectionLost',
67
+ ICE_FAILURE: 'IceFailure',
68
+ MEDIA_ENGINE_HANG: 'MediaEngineHang',
69
+ ICE_SERVER_REJECTED: 'IceServerRejected',
70
+ CALL_FULL: 'CallFull',
71
+ ROOM_TOO_LARGE: 'RoomTooLarge',
72
+ GUEST_ALREADY_ADDED: 'GuestAlreadyAdded',
73
+ LOCUS_USER_NOT_AUTHORISED: 'LocusUserNotAuthorised',
74
+ CLOUDBERRY_UNAVAILABLE: 'CloudberryUnavailable',
75
+ ROOM_TOO_LARGE_FREE_ACCOUNT: 'RoomTooLarge_FreeAccount',
76
+ MEETING_INACTIVE: 'MeetingInactive',
77
+ MEETING_LOCKED: 'MeetingLocked',
78
+ MEETING_TERMINATING: 'MeetingTerminating',
79
+ MODERATOR_PIN_OR_GUEST_REQUIRED: 'Moderator_Pin_Or_Guest_Required',
80
+ MODERATOR_PIN_OR_GUEST_PIN_REQUIRED: 'Moderator_Pin_Or_Guest_PIN_Required',
81
+ MODERATOR_REQUIRED: 'Moderator_Required',
82
+ USER_NOT_MEMBER_OF_ROOM: 'UserNotMemberOfRoom',
83
+ NEW_LOCUS_ERROR: 'NewLocusError',
84
+ NETWORK_UNAVAILABLE: 'NetworkUnavailable',
85
+ MEETING_UNAVAILABLE: 'MeetingUnavailable',
86
+ MEETING_ID_INVALID: 'MeetingIDInvalid',
87
+ MEETING_SITE_INVALID: 'MeetingSiteInvalid',
88
+ LOCUS_INVALID_JOINTIME: 'LocusInvalidJoinTime',
89
+ LOBBY_EXPIRED: 'LobbyExpired',
90
+ MEDIA_CONNECTION_LOST_PAIRED: 'MediaConnectionLostPaired',
91
+ PHONE_NUMBER_NOT_A_NUMBER: 'PhoneNumberNotANumber',
92
+ PHONE_NUMBER_TOO_LONG: 'PhoneNumberTooLong',
93
+ INVALID_DIALABLE_KEY: 'InvalidDialableKey',
94
+ ONE_ON_ONE_TO_SELF_NOT_ALLOWED: 'OneOnOneToSelfNotAllowed',
95
+ REMOVED_PARTICIPANT: 'RemovedParticipant',
96
+ MEETING_LINK_NOT_FOUND: 'MeetingLinkNotFound',
97
+ PHONE_NUMBER_TOO_SHORT_AFTER_IDD: 'PhoneNumberTooShortAfterIdd',
98
+ INVALID_INVITEE_ADDRESS: 'InvalidInviteeAddress',
99
+ PMR_USER_ACCOUNT_LOCKED_OUT: 'PMRUserAccountLockedOut',
100
+ GUEST_FORBIDDEN: 'GuestForbidden',
101
+ PMR_ACCOUNT_SUSPENDED: 'PMRAccountSuspended',
102
+ EMPTY_PHONE_NUMBER_OR_COUNTRY_CODE: 'EmptyPhoneNumberOrCountryCode',
103
+ CONVERSATION_NOT_FOUND: 'ConversationNotFound',
104
+ SIP_CALLEE_BUSY: 'SIPCalleeBusy',
105
+ SIP_CALLEE_NOT_FOUND: 'SIPCalleeNotFound',
106
+ START_RECORDING_FAILED: 'StartRecordingFailed',
107
+ RECORDING_IN_PROGRESS_FAILED: 'RecordingInProgressFailed',
108
+ MEETING_INFO_LOOKUP_ERROR: 'MeetingInfoLookupError',
109
+ CALL_FULL_ADD_GUEST: 'CallFullAddGuest',
110
+ REQUIRE_WEBEX_LOGIN: 'RequireWebexLogin',
111
+ USER_NOT_ALLOWED_ACCESS_MEETING: 'UserNotAllowedAccessMeeting',
112
+ USER_NEEDS_ACTIVATION: 'UserNeedsActivation',
113
+ SIGN_UP_INVALID_EMAIL: 'SignUpInvalidEmail',
114
+ UNKNOWN_ERROR: 'UnknownError',
115
+ NO_MEDIA_FOUND: 'NoMediaFound',
116
+ STREAM_ERROR_NO_MEDIA: 'StreamErrorNoMedia',
117
+ CAMERA_PERMISSION_DENIED: 'CameraPermissionDenied',
118
+ FRAUD_DETECTION: 'FraudDetection',
119
+ E2EE_NOT_SUPPORTED: 'E2EENotSupported',
120
+ LOCUS_LOBBY_FULL_CMR: 'LocusLobbyFullCMR',
121
+ USER_NOT_INVITED_TO_JOIN: 'UserNotInvitedToJoin',
122
+ MISSING_ROAP_ANSWER: 'MissingRoapAnswer',
123
+ DTLS_HANDSHAKE_FAILED: 'DTLSHandshakeFailed',
124
+ ICE_FAILED_WITHOUT_TURN_TLS: 'ICEFailedWithoutTURN_TLS',
125
+ ICE_FAILED_WITH_TURN_TLS: 'ICEFailedWithTURN_TLS'
126
+ };
127
+ exports.ERROR_DESCRIPTIONS = ERROR_DESCRIPTIONS;
128
+ var SERVICE_ERROR_CODES_TO_CLIENT_ERROR_CODES_MAP = {
129
+ // ---- Webex API ----
130
+ // Taken from https://wiki.cisco.com/display/HFWEB/MeetingInfo+API and https://sqbu-github.cisco.com/WebExSquared/spark-client-framework/blob/master/spark-client-framework/Services/WebexMeetingService/WebexMeetingModel.h
131
+ // Site not support the URL's domain
132
+ 58400: 4100,
133
+ 99002: 4100,
134
+ // Cannot find the data. Unkown meeting.
135
+ 99009: 4100,
136
+ // Meeting is not allow to cross env
137
+ 58500: 4100,
138
+ // Input parameters contain invalit item
139
+ 400001: 4100,
140
+ // Empty password or token. Meeting is not allow to access since require password
141
+ 403004: 4005,
142
+ // Wrong password. Meeting is not allow to access since password error
143
+ 403028: 4005,
144
+ // Wrong or expired permission. Meeting is not allow to access since permissionToken error or expire
145
+ 403032: 4005,
146
+ // Meeting is required login for current user
147
+ 403034: 4036,
148
+ // Meeting is not allow to access since require password or hostKey
149
+ // Empty password or host key
150
+ 403036: 4005,
151
+ // Meeting is not allow to access since password or hostKey error
152
+ // Wrong password or host key
153
+ 403038: 4005,
154
+ // CMR Meeting Not Supported (meeting exists, but not CMR meeting)
155
+ 403040: 4100,
156
+ // Requires Moderator Pin or Guest Pin
157
+ 403041: 4005,
158
+ // Email blocked
159
+ 403047: 4101,
160
+ // Device not authenticated for your organization
161
+ 403408: 4101,
162
+ // Invalid panelist Pin
163
+ 403043: 4005,
164
+ // Device not registered in org. Device not authenticated.
165
+ 403048: 4101,
166
+ // Not allowed to join external meetings. Violate meeting join policy. Your organization settings don't allow you to join this meeting.
167
+ 403049: 4101,
168
+ // Invalid email. Requires sign in meeting's current site.
169
+ 403100: 4101,
170
+ // Enforce sign in: need login before access when policy enforce sign in. GuestForceUserSignInPolicy
171
+ 403101: 4036,
172
+ // Enforce sign in: sign in with your email address that is approved by your organization
173
+ 403102: 4036,
174
+ // Join internal Meeting: need login before access when policy enforce sign in. Guest force user sign in internal meeting policy.
175
+ 403103: 4036,
176
+ // Join internal Meeting: The host's organization policy doesn't allow your account to join this meeting. Try switching to another account
177
+ 403104: 4101,
178
+ 404001: 4101,
179
+ // Site data not found. Unkonwn meeting. Site data not found(or null).
180
+ 404006: 4100,
181
+ // Invalid input with too many requests. Too many requests access, please input captcha code
182
+ 423001: 4005,
183
+ // Wrong password with too many requests. PasswordError too many time, please input captcha code
184
+ 423005: 4005,
185
+ // Wrong password or host key with too many requests
186
+ 423006: 4005,
187
+ // PasswordError with right captcha, please input captcha code
188
+ 423010: 4005,
189
+ // PasswordOrHostKeyError with right captcha, please input captcha code
190
+ 423012: 4005,
191
+ // Unverified or invalid input. Force show captcha. Please input captcha code"
192
+ 423013: 4005,
193
+ // Too many requests access
194
+ 429005: 4100,
195
+ // ---- Locus ------
196
+ // FREE_USER_MAX_PARTICIPANTS_EXCEEDED
197
+ 2403001: 3007,
198
+ // PAID_USER_MAX_PARTICIPANTS_EXCEEDED
199
+ 2403002: 3002,
200
+ // SERVICE_MAX_PARTICIPANTS_EXCEEDED
201
+ 2403003: 3002,
202
+ // LOCUS_INACTIVE
203
+ 2403004: 4001,
204
+ // LOCUS_FREE_USER_MAX_PARTICIPANTS_JOINED_EXCEEDED
205
+ 2403018: 3001,
206
+ // LOCUS_PAID_USER_MAX_PARTICIPANTS_JOINED_EXCEEDED
207
+ 2403019: 3001,
208
+ // LOCUS_LOCKED
209
+ 2423003: 4002,
210
+ // LOCUS_TERMINATING
211
+ 2423004: 4003,
212
+ // LOCUS_REQUIRES_MODERATOR_PIN_OR_GUEST
213
+ 2423005: 4005,
214
+ 2423006: 4005,
215
+ 2423016: 4005,
216
+ 2423017: 4005,
217
+ 2423018: 4005,
218
+ // LOCUS_OWNER_CONCURRENT_ACTIVE_MEETING_LIMIT_EXCEEDED
219
+ 2423012: 12000,
220
+ // LOCUS_LOBBY_FULL_CMR
221
+ 2423021: 12001,
222
+ // LOCUS_REQUIRES_MODERATOR_ROLE
223
+ 2423007: 4006,
224
+ // LOCUS_JOIN_RESTRICTED_USER_NOT_IN_ROOM
225
+ 2403010: 4007,
226
+ // LOCUS_MEETING_NOT_FOUND
227
+ 2403014: 4011,
228
+ // LOCUS_NOT_WEBEX_SITE
229
+ 2403015: 4012,
230
+ // LOCUS_INVALID_JOIN_TIME
231
+ 2423010: 4013,
232
+ // LOCUS_PHONE_NUMBER_NOT_A_NUMBER
233
+ 2400008: 4016,
234
+ // LOCUS_PHONE_NUMBER_TOO_LONG
235
+ 2400011: 4017,
236
+ // LOCUS_INVALID_DIALABLE_KEY
237
+ 2400012: 4018,
238
+ // LOCUS_ONE_ON_ONE_TO_SELF_NOT_ALLOWED
239
+ 2403007: 4019,
240
+ // LOCUS_REMOVED_PARTICIPANT
241
+ 2401002: 4020,
242
+ // LOCUS_MEETING_LINK_NOT_FOUND
243
+ 2404002: 4021,
244
+ // LOCUS_PHONE_NUMBER_TOO_SHORT_AFTER_IDD
245
+ 2400009: 4022,
246
+ // LOCUS_INVALID_INVITEE_ADDRESS
247
+ 2400025: 4023,
248
+ // LOCUS_PMR_USER_ACCOUNT_LOCKEDOUT
249
+ 2423009: 4024,
250
+ // LOCUS_RESOURCE_GUEST_FORBIDDEN
251
+ 2403022: 4025,
252
+ // LOCUS_PMR_SUSPENDED
253
+ 2423008: 4026,
254
+ // LOCUS_EMPTY_PHONE_NUMBER_OR_COUNTRY_CODE
255
+ 2400006: 4027,
256
+ // LOCUS_INVALID_SINCE_OR_SEQUENCE_HASH_IN_REQUEST
257
+ 2400014: 1006,
258
+ // LOCUS_CONVERSATION_NOT_FOUND
259
+ 2404001: 4028,
260
+ // LOCUS_RECORDING_CONTROL_NOT_SUPPORTED
261
+ 2403025: 4029,
262
+ // LOCUS_RECORDING_NOT_STARTED
263
+ 2405001: 4029,
264
+ // LOCUS_RECORDING_NOT_ENABLED
265
+ 2409005: 4029,
266
+ // E2EE_NOT_SUPPORTED
267
+ 2409062: 12002,
268
+ // LOCUS: ONLY_INVITED_USERS_CAN_ATTEND_THIS_MEETING
269
+ 2423025: 12003,
270
+ // ---- U2C Sign in catalog ------
271
+ // The user exists, but hasn't completed activation. Needs to visit Atlas for more processing.
272
+ 100002: 4102,
273
+ // The user exists, had completed activation earlier, but requires re-activation because of change in login strategy.
274
+ // Common example is: user signed up using an OAuth provider, but that OAuth provider was removed by org's admin. Now the user needs to re-activate using alternate login strategies: password-pin, new OAuth provider, SSO, etc.
275
+ 100007: 4102,
276
+ // The user does not exist
277
+ 100001: 4103,
278
+ // The user wasn't found, and the organization used for search is a domain-claimed organization.
279
+ 100006: 4103,
280
+ 100005: 4103,
281
+ // Depracated because of an issue in the UCF Clients
282
+ // If both email-hash and domain-hash are null or undefined.
283
+ 100004: 4103
284
+ };
285
+ exports.SERVICE_ERROR_CODES_TO_CLIENT_ERROR_CODES_MAP = SERVICE_ERROR_CODES_TO_CLIENT_ERROR_CODES_MAP;
286
+ var CLIENT_ERROR_CODE_TO_ERROR_PAYLOAD = (_CLIENT_ERROR_CODE_TO = {
287
+ 1000: {
288
+ errorDescription: ERROR_DESCRIPTIONS.UNKNOWN_CALL_FAILURE,
289
+ category: 'signaling',
290
+ fatal: true,
291
+ name: 'locus.response'
292
+ },
293
+ 1001: {
294
+ errorDescription: ERROR_DESCRIPTIONS.LOCUS_RATE_LIMITED_INCOMING,
295
+ category: 'signaling',
296
+ fatal: true,
297
+ name: 'locus.response'
298
+ },
299
+ 1002: {
300
+ errorDescription: ERROR_DESCRIPTIONS.LOCUS_RATE_LIMITED_OUTGOING,
301
+ category: 'signaling',
302
+ fatal: true,
303
+ name: 'locus.response'
304
+ },
305
+ 1003: {
306
+ errorDescription: ERROR_DESCRIPTIONS.LOCUS_UNAVAILABLE,
307
+ category: 'signaling',
308
+ fatal: true,
309
+ name: 'locus.response'
310
+ },
311
+ 1004: {
312
+ errorDescription: ERROR_DESCRIPTIONS.LOCUS_CONFLICT,
313
+ category: 'signaling',
314
+ fatal: true,
315
+ name: 'locus.response'
316
+ },
317
+ 1005: {
318
+ errorDescription: ERROR_DESCRIPTIONS.TIMEOUT,
319
+ category: 'signaling',
320
+ fatal: true,
321
+ name: 'locus.response'
322
+ },
323
+ 1006: {
324
+ errorDescription: ERROR_DESCRIPTIONS.LOCUS_INVALID_SEQUENCE_HASH,
325
+ category: 'signaling',
326
+ fatal: true
327
+ },
328
+ 1007: {
329
+ errorDescription: ERROR_DESCRIPTIONS.UPDATE_MEDIA_FAILED,
330
+ category: 'signaling',
331
+ fatal: true
332
+ }
333
+ }, (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, AUTHENTICATION_FAILED_CODE, {
334
+ errorDescription: ERROR_DESCRIPTIONS.AUTHENTICATION_FAILED,
335
+ category: 'network',
336
+ fatal: true
337
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 1026, {
338
+ errorDescription: ERROR_DESCRIPTIONS.NETWORK_ERROR,
339
+ category: 'network',
340
+ fatal: true
341
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 2001, {
342
+ errorDescription: ERROR_DESCRIPTIONS.FAILED_TO_CONNECT_MEDIA,
343
+ category: 'signaling',
344
+ fatal: true
345
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 2002, {
346
+ errorDescription: ERROR_DESCRIPTIONS.MEDIA_ENGINE_LOST,
347
+ category: 'signaling',
348
+ fatal: true
349
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 2003, {
350
+ errorDescription: ERROR_DESCRIPTIONS.MEDIA_CONNECTION_LOST,
351
+ category: 'signaling',
352
+ fatal: true
353
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, ICE_FAILURE_CLIENT_CODE, {
354
+ errorDescription: ERROR_DESCRIPTIONS.ICE_FAILURE,
355
+ category: 'media',
356
+ fatal: true
357
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 2005, {
358
+ errorDescription: ERROR_DESCRIPTIONS.MEDIA_ENGINE_HANG,
359
+ category: 'signaling',
360
+ fatal: true
361
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 2006, {
362
+ errorDescription: ERROR_DESCRIPTIONS.ICE_SERVER_REJECTED,
363
+ category: 'signaling',
364
+ fatal: true
365
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, MISSING_ROAP_ANSWER_CLIENT_CODE, {
366
+ errorDescription: ERROR_DESCRIPTIONS.MISSING_ROAP_ANSWER,
367
+ category: 'signaling',
368
+ fatal: true
369
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, DTLS_HANDSHAKE_FAILED_CLIENT_CODE, {
370
+ errorDescription: ERROR_DESCRIPTIONS.DTLS_HANDSHAKE_FAILED,
371
+ category: 'media',
372
+ fatal: true
373
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, ICE_FAILED_WITHOUT_TURN_TLS_CLIENT_CODE, {
374
+ errorDescription: ERROR_DESCRIPTIONS.ICE_FAILED_WITHOUT_TURN_TLS,
375
+ category: 'media',
376
+ fatal: true
377
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, ICE_FAILED_WITH_TURN_TLS_CLIENT_CODE, {
378
+ errorDescription: ERROR_DESCRIPTIONS.ICE_FAILED_WITH_TURN_TLS,
379
+ category: 'media',
380
+ fatal: true
381
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 3001, {
382
+ errorDescription: ERROR_DESCRIPTIONS.CALL_FULL,
383
+ category: 'expected',
384
+ fatal: true
385
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 3002, {
386
+ errorDescription: ERROR_DESCRIPTIONS.ROOM_TOO_LARGE,
387
+ category: 'expected',
388
+ fatal: true
389
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 3004, {
390
+ errorDescription: ERROR_DESCRIPTIONS.GUEST_ALREADY_ADDED,
391
+ category: 'expected',
392
+ fatal: false
393
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 3005, {
394
+ errorDescription: ERROR_DESCRIPTIONS.LOCUS_USER_NOT_AUTHORISED,
395
+ category: 'expected',
396
+ fatal: true
397
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 3006, {
398
+ errorDescription: ERROR_DESCRIPTIONS.CLOUDBERRY_UNAVAILABLE,
399
+ category: 'expected',
400
+ fatal: true
401
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 3007, {
402
+ errorDescription: ERROR_DESCRIPTIONS.STREAM_ERROR_NO_MEDIA,
403
+ category: 'expected',
404
+ fatal: true
405
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 3013, {
406
+ errorDescription: ERROR_DESCRIPTIONS.ROOM_TOO_LARGE_FREE_ACCOUNT,
407
+ category: 'expected',
408
+ fatal: false
409
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4001, {
410
+ errorDescription: ERROR_DESCRIPTIONS.MEETING_INACTIVE,
411
+ category: 'expected',
412
+ fatal: true
413
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4002, {
414
+ errorDescription: ERROR_DESCRIPTIONS.MEETING_LOCKED,
415
+ category: 'expected',
416
+ fatal: true,
417
+ name: 'locus.response'
418
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4003, {
419
+ errorDescription: ERROR_DESCRIPTIONS.MEETING_TERMINATING,
420
+ category: 'expected',
421
+ fatal: true,
422
+ name: 'locus.leave'
423
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4004, {
424
+ errorDescription: ERROR_DESCRIPTIONS.MODERATOR_PIN_OR_GUEST_REQUIRED,
425
+ category: 'expected',
426
+ fatal: false
427
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4005, {
428
+ errorDescription: ERROR_DESCRIPTIONS.MODERATOR_PIN_OR_GUEST_PIN_REQUIRED,
429
+ category: 'expected',
430
+ fatal: false
431
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4006, {
432
+ errorDescription: ERROR_DESCRIPTIONS.MODERATOR_REQUIRED,
433
+ category: 'expected',
434
+ fatal: false
435
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4007, {
436
+ errorDescription: ERROR_DESCRIPTIONS.USER_NOT_MEMBER_OF_ROOM,
437
+ category: 'expected',
438
+ fatal: true
439
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4008, {
440
+ errorDescription: ERROR_DESCRIPTIONS.NEW_LOCUS_ERROR,
441
+ category: 'signaling',
442
+ fatal: true
443
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4009, {
444
+ errorDescription: ERROR_DESCRIPTIONS.NETWORK_UNAVAILABLE,
445
+ category: 'network',
446
+ fatal: true
447
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4010, {
448
+ errorDescription: ERROR_DESCRIPTIONS.MEETING_UNAVAILABLE,
449
+ category: 'expected',
450
+ fatal: true
451
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4011, {
452
+ errorDescription: ERROR_DESCRIPTIONS.MEETING_ID_INVALID,
453
+ category: 'expected',
454
+ fatal: true
455
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4012, {
456
+ errorDescription: ERROR_DESCRIPTIONS.MEETING_SITE_INVALID,
457
+ category: 'expected',
458
+ fatal: true
459
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4013, {
460
+ errorDescription: ERROR_DESCRIPTIONS.LOCUS_INVALID_JOINTIME,
461
+ category: 'expected',
462
+ fatal: true
463
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4014, {
464
+ errorDescription: ERROR_DESCRIPTIONS.LOBBY_EXPIRED,
465
+ category: 'expected',
466
+ fatal: true
467
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4015, {
468
+ errorDescription: ERROR_DESCRIPTIONS.MEDIA_CONNECTION_LOST_PAIRED,
469
+ category: 'expected',
470
+ fatal: false
471
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4016, {
472
+ errorDescription: ERROR_DESCRIPTIONS.PHONE_NUMBER_NOT_A_NUMBER,
473
+ category: 'expected',
474
+ fatal: true,
475
+ name: 'locus.response'
476
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4017, {
477
+ errorDescription: ERROR_DESCRIPTIONS.PHONE_NUMBER_TOO_LONG,
478
+ category: 'expected',
479
+ fatal: true,
480
+ name: 'locus.response'
481
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4018, {
482
+ errorDescription: ERROR_DESCRIPTIONS.INVALID_DIALABLE_KEY,
483
+ category: 'expected',
484
+ fatal: true,
485
+ name: 'locus.response'
486
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4019, {
487
+ errorDescription: ERROR_DESCRIPTIONS.ONE_ON_ONE_TO_SELF_NOT_ALLOWED,
488
+ category: 'expected',
489
+ fatal: true
490
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4020, {
491
+ errorDescription: ERROR_DESCRIPTIONS.REMOVED_PARTICIPANT,
492
+ category: 'expected',
493
+ fatal: true
494
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4021, {
495
+ errorDescription: ERROR_DESCRIPTIONS.MEETING_LINK_NOT_FOUND,
496
+ category: 'expected',
497
+ fatal: true
498
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4022, {
499
+ errorDescription: ERROR_DESCRIPTIONS.PHONE_NUMBER_TOO_SHORT_AFTER_IDD,
500
+ category: 'expected',
501
+ fatal: true
502
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4023, {
503
+ errorDescription: ERROR_DESCRIPTIONS.INVALID_INVITEE_ADDRESS,
504
+ category: 'expected',
505
+ fatal: true
506
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4024, {
507
+ errorDescription: ERROR_DESCRIPTIONS.PMR_USER_ACCOUNT_LOCKED_OUT,
508
+ category: 'expected',
509
+ fatal: true
510
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4025, {
511
+ errorDescription: ERROR_DESCRIPTIONS.GUEST_FORBIDDEN,
512
+ category: 'expected',
513
+ fatal: true
514
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4026, {
515
+ errorDescription: ERROR_DESCRIPTIONS.PMR_ACCOUNT_SUSPENDED,
516
+ category: 'expected',
517
+ fatal: true
518
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4027, {
519
+ errorDescription: ERROR_DESCRIPTIONS.EMPTY_PHONE_NUMBER_OR_COUNTRY_CODE,
520
+ category: 'expected',
521
+ fatal: true
522
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4028, {
523
+ errorDescription: ERROR_DESCRIPTIONS.CONVERSATION_NOT_FOUND,
524
+ category: 'expected',
525
+ fatal: true
526
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4029, {
527
+ errorDescription: ERROR_DESCRIPTIONS.START_RECORDING_FAILED,
528
+ category: 'expected',
529
+ fatal: true
530
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4030, {
531
+ errorDescription: ERROR_DESCRIPTIONS.RECORDING_IN_PROGRESS_FAILED,
532
+ category: 'expected',
533
+ fatal: true
534
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4032, {
535
+ errorDescription: ERROR_DESCRIPTIONS.CAMERA_PERMISSION_DENIED,
536
+ category: 'expected',
537
+ fatal: true
538
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4036, {
539
+ errorDescription: ERROR_DESCRIPTIONS.REQUIRE_WEBEX_LOGIN,
540
+ category: 'expected',
541
+ fatal: true
542
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 5000, {
543
+ errorDescription: ERROR_DESCRIPTIONS.SIP_CALLEE_BUSY,
544
+ category: 'expected',
545
+ fatal: true
546
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 5001, {
547
+ errorDescription: ERROR_DESCRIPTIONS.SIP_CALLEE_NOT_FOUND,
548
+ category: 'expected',
549
+ fatal: true
550
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4100, {
551
+ errorDescription: ERROR_DESCRIPTIONS.MEETING_INFO_LOOKUP_ERROR,
552
+ category: 'signaling',
553
+ fatal: true
554
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 3003, {
555
+ errorDescription: ERROR_DESCRIPTIONS.CALL_FULL_ADD_GUEST,
556
+ category: 'expected',
557
+ fatal: false
558
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4101, {
559
+ errorDescription: ERROR_DESCRIPTIONS.USER_NOT_ALLOWED_ACCESS_MEETING,
560
+ category: 'expected',
561
+ fatal: true
562
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4102, {
563
+ errorDescription: ERROR_DESCRIPTIONS.USER_NEEDS_ACTIVATION,
564
+ category: 'expected',
565
+ fatal: true
566
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 4103, {
567
+ errorDescription: ERROR_DESCRIPTIONS.SIGN_UP_INVALID_EMAIL,
568
+ category: 'expected',
569
+ fatal: true
570
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 2729, {
571
+ errorDescription: ERROR_DESCRIPTIONS.NO_MEDIA_FOUND,
572
+ category: 'expected',
573
+ fatal: false
574
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 9999, {
575
+ errorDescription: ERROR_DESCRIPTIONS.UNKNOWN_ERROR,
576
+ category: 'other',
577
+ fatal: true
578
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 12000, {
579
+ errorDescription: ERROR_DESCRIPTIONS.FRAUD_DETECTION,
580
+ category: 'expected',
581
+ fatal: true,
582
+ name: 'locus.response',
583
+ shownToUser: true
584
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 12001, {
585
+ errorDescription: ERROR_DESCRIPTIONS.LOCUS_LOBBY_FULL_CMR,
586
+ category: 'expected',
587
+ fatal: true,
588
+ name: 'locus.response',
589
+ shownToUser: true
590
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 12002, {
591
+ errorDescription: ERROR_DESCRIPTIONS.E2EE_NOT_SUPPORTED,
592
+ category: 'expected',
593
+ fatal: true,
594
+ name: 'locus.response',
595
+ shownToUser: true
596
+ }), (0, _defineProperty2.default)(_CLIENT_ERROR_CODE_TO, 12003, {
597
+ errorDescription: ERROR_DESCRIPTIONS.USER_NOT_INVITED_TO_JOIN,
598
+ category: 'expected',
599
+ fatal: true
600
+ }), _CLIENT_ERROR_CODE_TO);
601
+ exports.CLIENT_ERROR_CODE_TO_ERROR_PAYLOAD = CLIENT_ERROR_CODE_TO_ERROR_PAYLOAD;
602
+ var CALL_DIAGNOSTIC_EVENT_FAILED_TO_SEND = 'js_sdk_call_diagnostic_event_failed_to_send';
603
+ exports.CALL_DIAGNOSTIC_EVENT_FAILED_TO_SEND = CALL_DIAGNOSTIC_EVENT_FAILED_TO_SEND;
604
+ //# sourceMappingURL=config.js.map