@webex/internal-plugin-metrics 3.0.0-beta.33 → 3.0.0-beta.331

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