@webex/plugin-meetings 3.0.0-beta.162 → 3.0.0-beta.164

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 (64) hide show
  1. package/dist/breakouts/breakout.js +7 -3
  2. package/dist/breakouts/breakout.js.map +1 -1
  3. package/dist/breakouts/events.js +31 -29
  4. package/dist/breakouts/events.js.map +1 -1
  5. package/dist/breakouts/index.js +4 -2
  6. package/dist/breakouts/index.js.map +1 -1
  7. package/dist/constants.js +2 -4
  8. package/dist/constants.js.map +1 -1
  9. package/dist/interpretation/index.js +1 -1
  10. package/dist/interpretation/siLanguage.js +1 -1
  11. package/dist/locus-info/index.js +33 -17
  12. package/dist/locus-info/index.js.map +1 -1
  13. package/dist/meeting/index.js +699 -682
  14. package/dist/meeting/index.js.map +1 -1
  15. package/dist/meeting/util.js +47 -25
  16. package/dist/meeting/util.js.map +1 -1
  17. package/dist/meeting-info/index.js +48 -7
  18. package/dist/meeting-info/index.js.map +1 -1
  19. package/dist/meeting-info/meeting-info-v2.js +24 -10
  20. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  21. package/dist/meetings/index.js +12 -9
  22. package/dist/meetings/index.js.map +1 -1
  23. package/dist/metrics/index.js +1 -487
  24. package/dist/metrics/index.js.map +1 -1
  25. package/dist/reconnection-manager/index.js +27 -17
  26. package/dist/reconnection-manager/index.js.map +1 -1
  27. package/dist/roap/request.js +20 -14
  28. package/dist/roap/request.js.map +1 -1
  29. package/dist/types/breakouts/events.d.ts +7 -1
  30. package/dist/types/constants.d.ts +0 -1
  31. package/dist/types/meeting/index.d.ts +31 -133
  32. package/dist/types/meeting-info/index.d.ts +6 -1
  33. package/dist/types/meetings/index.d.ts +1 -0
  34. package/dist/types/metrics/index.d.ts +4 -128
  35. package/package.json +19 -19
  36. package/src/breakouts/breakout.ts +10 -2
  37. package/src/breakouts/events.ts +51 -32
  38. package/src/breakouts/index.ts +9 -5
  39. package/src/constants.ts +0 -2
  40. package/src/locus-info/index.ts +35 -17
  41. package/src/meeting/index.ts +474 -536
  42. package/src/meeting/util.ts +42 -19
  43. package/src/meeting-info/index.ts +54 -8
  44. package/src/meeting-info/meeting-info-v2.ts +24 -9
  45. package/src/meetings/index.ts +11 -6
  46. package/src/metrics/index.ts +1 -506
  47. package/src/reconnection-manager/index.ts +27 -17
  48. package/src/roap/request.ts +21 -9
  49. package/test/unit/spec/breakouts/breakout.ts +4 -2
  50. package/test/unit/spec/breakouts/events.ts +24 -18
  51. package/test/unit/spec/locus-info/index.js +112 -0
  52. package/test/unit/spec/meeting/index.js +178 -145
  53. package/test/unit/spec/meeting/utils.js +93 -7
  54. package/test/unit/spec/meeting-info/index.js +181 -0
  55. package/test/unit/spec/meeting-info/meetinginfov2.js +68 -68
  56. package/test/unit/spec/meetings/index.js +35 -55
  57. package/test/unit/spec/metrics/index.js +1 -148
  58. package/test/unit/spec/reconnection-manager/index.js +51 -2
  59. package/test/unit/spec/roap/index.ts +8 -2
  60. package/test/unit/spec/roap/request.ts +43 -5
  61. package/dist/metrics/config.js +0 -335
  62. package/dist/metrics/config.js.map +0 -1
  63. package/dist/types/metrics/config.d.ts +0 -195
  64. package/src/metrics/config.ts +0 -534
@@ -1,534 +0,0 @@
1
- const errorDescription = {
2
- UNKNOWN_CALL_FAILURE: 'UnknownCallFailure',
3
- LOCUS_RATE_LIMITED_INCOMING: 'LocusRateLimitedIncoming',
4
- LOCUS_RATE_LIMITED_OUTGOING: 'LocusRateLimitedOutgoing',
5
- LOCUS_UNAVAILABLE: 'LocusUnavailable',
6
- LOCUS_CONFLICT: 'LocusConflict',
7
- TIMEOUT: 'Timeout',
8
- LOCUS_INVALID_SEQUENCE_HASH: 'LocusInvalidSequenceHash',
9
- UPDATE_MEDIA_FAILED: 'UpdateMediaFailed',
10
- FAILED_TO_CONNECT_MEDIA: 'FailedToConnectMedia',
11
- MEDIA_ENGINE_LOST: 'MediaEngineLost',
12
- MEDIA_CONNECTION_LOST: 'MediaConnectionLost',
13
- ICE_FAILURE: 'IceFailure',
14
- MEDIA_ENGINE_HANG: 'MediaEngineHang',
15
- ICE_SERVER_REJECTED: 'IceServerRejected',
16
- CALL_FULL: 'CallFull',
17
- ROOM_TOO_LARGE: 'RoomTooLarge',
18
- GUEST_ALREADY_ADDED: 'GuestAlreadyAdded',
19
- LOCUS_USER_NOT_AUTHORISED: 'LocusUserNotAuthorised',
20
- CLOUDBERRY_UNAVAILABLE: 'CloudberryUnavailable',
21
- ROOM_TOO_LARGE_FREE_ACCOUNT: 'RoomTooLarge_FreeAccount',
22
- MEETING_INACTIVE: 'MeetingInactive',
23
- MEETING_LOCKED: 'MeetingLocked',
24
- MEETING_TERMINATING: 'MeetingTerminating',
25
- MODERATOR_PIN_OR_GUEST_REQUIRED: 'Moderator_Pin_Or_Guest_Required',
26
- MODERATOR_PIN_OR_GUEST_PIN_REQUIRED: 'Moderator_Pin_Or_Guest_PIN_Required',
27
- MODERATOR_REQUIRED: 'Moderator_Required',
28
- USER_NOT_MEMBER_OF_ROOM: 'UserNotMemberOfRoom',
29
- NEW_LOCUS_ERROR: 'NewLocusError',
30
- NET_WORK_UNAVAILABLE: 'NetworkUnavailable',
31
- MEETING_UNAVAILABLE: 'MeetingUnavailable',
32
- MEETING_ID_INVALID: 'MeetingIDInvalid',
33
- MEETING_SITE_INVALID: 'MeetingSiteInvalid',
34
- LOCUS_INVALID_JOINTIME: 'LocusInvalidJoinTime',
35
- LOBBY_EXPIRED: 'LobbyExpired',
36
- MEDIA_CONNECTION_LOST_PAIRED: 'MediaConnectionLostPaired',
37
- PHONE_NUMBER_NOT_A_NUMBER: 'PhoneNumberNotANumber',
38
- PHONE_NUMBER_TOO_LONG: 'PhoneNumberTooLong',
39
- INVALID_DIALABLE_KEY: 'InvalidDialableKey',
40
- ONE_ON_ONE_TO_SELF_NOT_ALLOWED: 'OneOnOneToSelfNotAllowed',
41
- REMOVED_PARTICIPANT: 'RemovedParticipant',
42
- MEETING_LINK_NOT_FOUND: 'MeetingLinkNotFound',
43
- PHONE_NUMBER_TOO_SHORT_AFTER_IDD: 'PhoneNumberTooShortAfterIdd',
44
- INVALID_INVITEE_ADDRESS: 'InvalidInviteeAddress',
45
- PMR_USER_ACCOUNT_LOCKED_OUT: 'PMRUserAccountLockedOut',
46
- GUEST_FORBIDDEN: 'GuestForbidden',
47
- PMR_ACCOUNT_SUSPENDED: 'PMRAccountSuspended',
48
- EMPTY_PHONE_NUMBER_OR_COUNTRY_CODE: 'EmptyPhoneNumberOrCountryCode',
49
- CONVERSATION_NOT_FOUND: 'ConversationNotFound',
50
- SIP_CALLEE_BUSY: 'SIPCalleeBusy',
51
- SIP_CALLEE_NOT_FOUND: 'SIPCalleeNotFound',
52
- START_RECORDING_FAILED: 'StartRecordingFailed',
53
- RECORDING_IN_PROGRESS_FAILED: 'RecordingInProgressFailed',
54
- MEETING_INFO_LOOKUP_ERROR: 'MeetingInfoLookupError',
55
- };
56
-
57
- const errorCategory = {
58
- SIGNALING: 'signaling',
59
- MEDIA: 'media',
60
- OTHER: 'other',
61
- EXPECTED: 'expected',
62
- };
63
-
64
- const errorFailureType = {
65
- CALL_INITIATION_FAILURE: 'CallInitiationFailure',
66
- MEDIA_CONNECTION_FAILURE: 'MediaConnectionFailure',
67
- EXPECTED_FAILURE: 'ExpectedFailure',
68
- ACCESS_RIGHTS: 'AccessRights',
69
- };
70
-
71
- export const eventType = {
72
- // media quality events every 60 seconds
73
- MEDIA_QUALITY: 'client.mediaquality.event',
74
- CALL_INITIATED: 'client.call.initiated',
75
- MERCURY_CONNECTION_LOST: 'client.mercury.connection.lost',
76
- MERCURY_CONNECTION_RESTORED: 'client.mercury.connection.restored',
77
- MOVE_MEDIA: 'client.call.move-media',
78
- LOCAL_SDP_GENERATED: 'client.media-engine.local-sdp-generated',
79
- REMOTE_SDP_RECEIVED: 'client.media-engine.remote-sdp-received',
80
- LOCUS_JOIN_REQUEST: 'client.locus.join.request',
81
- LOCUS_JOIN_RESPONSE: 'client.locus.join.response',
82
- MEETING_INFO_REQUEST: 'client.meetinginfo.request',
83
- MEETING_INFO_RESPONSE: 'client.meetinginfo.response',
84
- ALERT_DISPLAYED: 'client.alert.displayed',
85
- // when ICE negotiation starts
86
- ICE_START: 'client.ice.start',
87
- ICE_END: 'client.ice.end',
88
- ICE_DISCONNECT: 'client.ice.disconnect',
89
- // Fired when the media engine reports receiving a new media stream. Media events MUST have the mediaType property.
90
- RECEIVING_MEDIA_START: 'client.media.rx.start',
91
- // Fired when the media engine reports the end of receiving a media stream.
92
- // Media events MUST have the mediaType property.
93
- RECEIVING_MEDIA_STOP: 'client.media.rx.stop',
94
- // Fired when the media engine reports sending a new media stream. Media events MUST have the mediaType property.
95
- SENDING_MEDIA_START: 'client.media.tx.start',
96
- // Fired when the media engine reports it stopped sending a media stream.
97
- // Media events MUST have the mediaType property.
98
- SENDING_MEDIA_STOP: 'client.media.tx.stop',
99
- MEDIA_RENDER_START: 'client.media.render.start',
100
- MEDIA_RENDER_STOP: 'client.media.render.stop',
101
- // static media event when outside of the normal scenario
102
- // call-analyzer assumes that a client is capable of receiving audio, video, and share
103
- // fired on change, or at beginning of a call
104
- // every media type is required, so must be indicated with boolean
105
- MEDIA_CAPABILITIES: 'client.media.capabilities',
106
- // Sent when the client notices that a media session has been lost
107
- MEDIA_RECONNECTING: 'client.media.reconnecting',
108
- // Sent when the client recovers a media session that was lost
109
- MEDIA_RECOVERED: 'client.media.recovered',
110
- CALL_ABORTED: 'client.call.aborted',
111
- // Fired when the "please enter your PIN" or similar prompt is displayed
112
- // to the user, to authenticate them into the meeting
113
- PIN_PROMPT: 'client.pin.prompt',
114
- // Fired when PIN entry has been completed
115
- PIN_COLLECTED: 'client.pin.collected',
116
- // Fired when the client displays the native lobby
117
- LOBBY_ENTERED: 'client.lobby.entered',
118
- // Fired when the client leaves the native lobby
119
- LOBBY_EXITED: 'client.lobby.exited',
120
- // Fired when the user of the client starts a share (e.g. click 'Share' button).
121
- // This should be sent from all clients that support sending a share.
122
- SHARE_INITIATED: 'client.share.initiated',
123
- // Fired when the user stops sharing (usually when they click the 'Stop' button for share)
124
- SHARE_STOPPED: 'client.share.stopped',
125
- // When the client receives a successful response from locus indicating that it has the floor for content sharing.
126
- LOCAL_SHARE_FLOOR_GRANTED: 'client.share.floor-granted.local',
127
- // Fired when the client changes its local UI/layout to a content sharing view,
128
- // because it is expecting to display share media.
129
- SHARE_LAYOUT_DISPLAYED: 'client.share.layout.displayed',
130
- // Fired when the user of the client starts a whiteboard share (e.g. click 'Share Live' button).
131
- WHITEBOARD_SHARE_INITIATED: 'client.whiteboard.share.initiated',
132
- // Fired when the meeting floor is released for whiteboard share
133
- WHITEBOARD_SHARE_STOPPED: 'client.whiteboard.share.stopped',
134
- // When the client receives a successful response from locus indicating that it has the floor for whiteboard sharing.
135
- WHITEBOARD_SHARE_FLOOR_GRANTED: 'client.whiteboard.share.floor-granted',
136
- MUTED: 'client.muted',
137
- UNMUTED: 'client.unmuted',
138
- LEAVE: 'client.call.leave',
139
- REMOTE_ENDED: 'client.call.remote-ended',
140
- REMOTE_STARTED: 'client.call.remote-started',
141
- MEDIA_REQUEST: 'client.locus.media.request',
142
- MEDIA_RESPONSE: 'client.locus.media.response',
143
- PSTN_AUDIO_ATTEMPT_START: 'client.pstnaudio.attempt.start',
144
- PSTN_AUDIO_ATTEMPT_FINISH: 'client.pstnaudio.attempt.finish',
145
- PSTN_AUDIO_ATTEMPT_SKIP: 'client.pstnaudio.attempt.skip',
146
- BREAKOUT_MOVE_REQUEST: 'client.breakout-session.move.request',
147
- BREAKOUT_MOVE_RESPONSE: 'client.breakout-session.move.response',
148
- BREAKOUT_JOIN_RESPONSE: 'client.breakout-session.join.response',
149
- };
150
-
151
- export const error = {
152
- name: {
153
- MEDIA_ENGINE: 'media-engine',
154
- ICE_FAILED: 'ice.failed',
155
- LOCUS_RESPONSE: 'locus.response',
156
- LOCUS_LEAVE: 'locus.leave',
157
- OTHER: 'other',
158
- },
159
-
160
- notFatalErrorList: [3003, 3004, 4004, 4005, 4006, 4015],
161
- errors: {
162
- // https://sqbu-github.cisco.com/WebExSquared/event-dictionary/wiki/Error-codes-for-metric-events
163
- // [errorDescription, errorFailureType, errorCategory]
164
- 1000: [
165
- errorDescription.UNKNOWN_CALL_FAILURE,
166
- errorFailureType.CALL_INITIATION_FAILURE,
167
- errorCategory.SIGNALING,
168
- ],
169
- 1001: [
170
- errorDescription.LOCUS_RATE_LIMITED_INCOMING,
171
- errorFailureType.CALL_INITIATION_FAILURE,
172
- errorCategory.SIGNALING,
173
- ],
174
- 1002: [
175
- errorDescription.LOCUS_RATE_LIMITED_OUTGOING,
176
- errorFailureType.CALL_INITIATION_FAILURE,
177
- errorCategory.SIGNALING,
178
- ],
179
- 1003: [
180
- errorDescription.LOCUS_UNAVAILABLE,
181
- errorFailureType.CALL_INITIATION_FAILURE,
182
- errorCategory.SIGNALING,
183
- ],
184
- 1004: [
185
- errorDescription.LOCUS_CONFLICT,
186
- errorFailureType.CALL_INITIATION_FAILURE,
187
- errorCategory.SIGNALING,
188
- ],
189
- 1005: [
190
- errorDescription.TIMEOUT,
191
- errorFailureType.CALL_INITIATION_FAILURE,
192
- errorCategory.SIGNALING,
193
- ],
194
- 1006: [
195
- errorDescription.LOCUS_INVALID_SEQUENCE_HASH,
196
- errorFailureType.CALL_INITIATION_FAILURE,
197
- errorCategory.SIGNALING,
198
- ],
199
- 1007: [
200
- errorDescription.UPDATE_MEDIA_FAILED,
201
- errorFailureType.CALL_INITIATION_FAILURE,
202
- errorCategory.SIGNALING,
203
- ],
204
- 2001: [
205
- errorDescription.FAILED_TO_CONNECT_MEDIA,
206
- errorFailureType.MEDIA_CONNECTION_FAILURE,
207
- errorCategory.SIGNALING,
208
- ],
209
- 2002: [
210
- errorDescription.MEDIA_ENGINE_LOST,
211
- errorFailureType.MEDIA_CONNECTION_FAILURE,
212
- errorCategory.SIGNALING,
213
- ],
214
- 2003: [
215
- errorDescription.MEDIA_CONNECTION_LOST,
216
- errorFailureType.MEDIA_CONNECTION_FAILURE,
217
- errorCategory.SIGNALING,
218
- ],
219
- 2004: [
220
- errorDescription.ICE_FAILURE,
221
- errorFailureType.MEDIA_CONNECTION_FAILURE,
222
- errorCategory.SIGNALING,
223
- ],
224
- 2005: [
225
- errorDescription.MEDIA_ENGINE_HANG,
226
- errorFailureType.MEDIA_CONNECTION_FAILURE,
227
- errorCategory.SIGNALING,
228
- ],
229
- 2006: [
230
- errorDescription.ICE_SERVER_REJECTED,
231
- errorFailureType.MEDIA_CONNECTION_FAILURE,
232
- errorCategory.SIGNALING,
233
- ],
234
- 3001: [errorDescription.CALL_FULL, errorFailureType.EXPECTED_FAILURE, errorCategory.EXPECTED],
235
- 3002: [
236
- errorDescription.ROOM_TOO_LARGE,
237
- errorFailureType.EXPECTED_FAILURE,
238
- errorCategory.EXPECTED,
239
- ],
240
- 3004: [
241
- errorDescription.GUEST_ALREADY_ADDED,
242
- errorFailureType.EXPECTED_FAILURE,
243
- errorCategory.EXPECTED,
244
- ],
245
- 3005: [
246
- errorDescription.LOCUS_USER_NOT_AUTHORISED,
247
- errorFailureType.EXPECTED_FAILURE,
248
- errorCategory.EXPECTED,
249
- ],
250
- 3006: [
251
- errorDescription.CLOUDBERRY_UNAVAILABLE,
252
- errorFailureType.EXPECTED_FAILURE,
253
- errorCategory.EXPECTED,
254
- ],
255
- 3007: [
256
- errorDescription.ROOM_TOO_LARGE_FREE_ACCOUNT,
257
- errorFailureType.EXPECTED_FAILURE,
258
- errorCategory.EXPECTED,
259
- ],
260
- 4001: [
261
- errorDescription.MEETING_INACTIVE,
262
- errorFailureType.CALL_INITIATION_FAILURE,
263
- errorCategory.EXPECTED,
264
- ],
265
- 4002: [
266
- errorDescription.MEETING_LOCKED,
267
- errorFailureType.CALL_INITIATION_FAILURE,
268
- errorCategory.EXPECTED,
269
- ],
270
- 4003: [
271
- errorDescription.MEETING_TERMINATING,
272
- errorFailureType.CALL_INITIATION_FAILURE,
273
- errorCategory.EXPECTED,
274
- ],
275
- 4004: [
276
- errorDescription.MODERATOR_PIN_OR_GUEST_REQUIRED,
277
- errorFailureType.ACCESS_RIGHTS,
278
- errorCategory.EXPECTED,
279
- ],
280
- 4005: [
281
- errorDescription.MODERATOR_PIN_OR_GUEST_PIN_REQUIRED,
282
- errorFailureType.ACCESS_RIGHTS,
283
- errorCategory.EXPECTED,
284
- ],
285
- 4006: [
286
- errorDescription.MODERATOR_REQUIRED,
287
- errorFailureType.ACCESS_RIGHTS,
288
- errorCategory.EXPECTED,
289
- ],
290
- 4007: [
291
- errorDescription.USER_NOT_MEMBER_OF_ROOM,
292
- errorFailureType.ACCESS_RIGHTS,
293
- errorCategory.EXPECTED,
294
- ],
295
- 4008: [
296
- errorDescription.NEW_LOCUS_ERROR,
297
- errorFailureType.CALL_INITIATION_FAILURE,
298
- errorCategory.EXPECTED,
299
- ],
300
- 4009: [
301
- errorDescription.NET_WORK_UNAVAILABLE,
302
- errorFailureType.CALL_INITIATION_FAILURE,
303
- errorCategory.EXPECTED,
304
- ],
305
- 4010: [
306
- errorDescription.MEETING_UNAVAILABLE,
307
- errorFailureType.CALL_INITIATION_FAILURE,
308
- errorCategory.EXPECTED,
309
- ],
310
- 4011: [
311
- errorDescription.MEETING_ID_INVALID,
312
- errorFailureType.EXPECTED_FAILURE,
313
- errorCategory.EXPECTED,
314
- ],
315
- 4012: [
316
- errorDescription.MEETING_SITE_INVALID,
317
- errorFailureType.EXPECTED_FAILURE,
318
- errorCategory.EXPECTED,
319
- ],
320
- 4013: [
321
- errorDescription.LOCUS_INVALID_JOINTIME,
322
- errorFailureType.EXPECTED_FAILURE,
323
- errorCategory.EXPECTED,
324
- ],
325
- 4014: [
326
- errorDescription.LOBBY_EXPIRED,
327
- errorFailureType.EXPECTED_FAILURE,
328
- errorCategory.EXPECTED,
329
- ],
330
- 4015: [
331
- errorDescription.MEDIA_CONNECTION_LOST_PAIRED,
332
- errorFailureType.MEDIA_CONNECTION_FAILURE,
333
- errorCategory.EXPECTED,
334
- ],
335
- 4016: [
336
- errorDescription.PHONE_NUMBER_NOT_A_NUMBER,
337
- errorFailureType.EXPECTED_FAILURE,
338
- errorCategory.EXPECTED,
339
- ],
340
- 4017: [
341
- errorDescription.PHONE_NUMBER_TOO_LONG,
342
- errorFailureType.EXPECTED_FAILURE,
343
- errorCategory.EXPECTED,
344
- ],
345
- 4018: [
346
- errorDescription.INVALID_DIALABLE_KEY,
347
- errorFailureType.EXPECTED_FAILURE,
348
- errorCategory.EXPECTED,
349
- ],
350
- 4019: [
351
- errorDescription.ONE_ON_ONE_TO_SELF_NOT_ALLOWED,
352
- errorFailureType.EXPECTED_FAILURE,
353
- errorCategory.EXPECTED,
354
- ],
355
- 4020: [
356
- errorDescription.REMOVED_PARTICIPANT,
357
- errorFailureType.EXPECTED_FAILURE,
358
- errorCategory.EXPECTED,
359
- ],
360
- 4021: [
361
- errorDescription.MEETING_LINK_NOT_FOUND,
362
- errorFailureType.EXPECTED_FAILURE,
363
- errorCategory.EXPECTED,
364
- ],
365
- 4022: [
366
- errorDescription.PHONE_NUMBER_TOO_SHORT_AFTER_IDD,
367
- errorFailureType.EXPECTED_FAILURE,
368
- errorCategory.EXPECTED,
369
- ],
370
- 4023: [
371
- errorDescription.INVALID_INVITEE_ADDRESS,
372
- errorFailureType.EXPECTED_FAILURE,
373
- errorCategory.EXPECTED,
374
- ],
375
- 4024: [
376
- errorDescription.PMR_USER_ACCOUNT_LOCKED_OUT,
377
- errorFailureType.EXPECTED_FAILURE,
378
- errorCategory.EXPECTED,
379
- ],
380
- 4025: [
381
- errorDescription.GUEST_FORBIDDEN,
382
- errorFailureType.EXPECTED_FAILURE,
383
- errorCategory.EXPECTED,
384
- ],
385
- 4026: [
386
- errorDescription.PMR_ACCOUNT_SUSPENDED,
387
- errorFailureType.EXPECTED_FAILURE,
388
- errorCategory.EXPECTED,
389
- ],
390
- 4027: [
391
- errorDescription.EMPTY_PHONE_NUMBER_OR_COUNTRY_CODE,
392
- errorFailureType.EXPECTED_FAILURE,
393
- errorCategory.EXPECTED,
394
- ],
395
- 4028: [
396
- errorDescription.CONVERSATION_NOT_FOUND,
397
- errorFailureType.EXPECTED_FAILURE,
398
- errorCategory.EXPECTED,
399
- ],
400
- 4029: [
401
- errorDescription.START_RECORDING_FAILED,
402
- errorFailureType.EXPECTED_FAILURE,
403
- errorCategory.EXPECTED,
404
- ],
405
- 4030: [
406
- errorDescription.RECORDING_IN_PROGRESS_FAILED,
407
- errorFailureType.EXPECTED_FAILURE,
408
- errorCategory.EXPECTED,
409
- ],
410
- 5000: [
411
- errorDescription.SIP_CALLEE_BUSY,
412
- errorFailureType.EXPECTED_FAILURE,
413
- errorCategory.EXPECTED,
414
- ],
415
- 5001: [
416
- errorDescription.SIP_CALLEE_NOT_FOUND,
417
- errorFailureType.EXPECTED_FAILURE,
418
- errorCategory.EXPECTED,
419
- ],
420
- // Webex App API Error Codes
421
- 4100: [
422
- errorDescription.MEETING_INFO_LOOKUP_ERROR,
423
- errorFailureType.CALL_INITIATION_FAILURE,
424
- errorCategory.SIGNALING,
425
- ],
426
- },
427
- };
428
-
429
- // map from SERVER ERROR CODE (normally from error.body.code) -> to Client Error Code
430
- export const WebexAPIServiceErrorCodes = {
431
- // Site not support the URL's domain
432
- 58400: 4100,
433
- 99002: 4100,
434
- // Cannot find the data
435
- 99009: 4100,
436
- // CMR Meeting Not Supported (meeting exists, but not CMR meeting)
437
- 403040: 4100,
438
- // Requires Moderator Pin or Guest Pin
439
- 403041: 4005,
440
- // Meeting is not allow to access since password or hostKey error
441
- 403038: 4005,
442
- // Meeting is not allow to access since require password or hostKey
443
- 403036: 4005,
444
- // Invalid panelist Pin
445
- 403043: 4100,
446
- // Device not registered in org
447
- 403048: 4100,
448
- // Not allowed to join external meetings
449
- 403049: 4100,
450
- 403100: 4100,
451
- // Enforce sign in: need login before access when policy enforce sign in
452
- 403101: 4100,
453
- // Enforce sign in: sign in with your email address that is approved by your organization
454
- 403102: 4100,
455
- // Join internal Meeting: need login before access when policy enforce sign in
456
- 403103: 4100,
457
- // Join internal Meeting: The host's organization policy doesn't allow your account to join this meeting. Try switching to another account
458
- 403104: 4100,
459
- 404001: 4100,
460
- // Site data not found
461
- 404006: 4100,
462
- // Too many requests access
463
- 429005: 4100,
464
- };
465
-
466
- export const trigger = {
467
- USER_INTERACTION: 'user-interaction',
468
- MERCURY_EVENT: 'mercury-event',
469
- LOCI_UPDATE: 'loci-update',
470
- MEDIA_ENGINE_EVENT: 'media-engine-event',
471
- TIMEOUT: 'timeout',
472
- SIGNALING: 'signaling',
473
- OTHER: 'other',
474
- };
475
-
476
- export const pstnAudioType = {
477
- DIAL_IN: 'dial-in',
478
- DIAL_OUT: 'dial-out',
479
- };
480
-
481
- export const displayLocation = {
482
- TOAST: 'toast',
483
- ROOM_LIST: 'room-list',
484
- CALL_PANE: 'call-pane',
485
- CALL_VIEW: 'call-view',
486
- OTHER: 'other',
487
- };
488
-
489
- export const mediaType = {
490
- AUDIO: 'audio',
491
- VIDEO: 'video',
492
- SHARE: 'share',
493
- WHITEBOARD: 'whiteboard',
494
- };
495
-
496
- export const reconnection = {
497
- RECOVERED_BY_NEW: 'new', // always set to new due to /media request, no retries with ice restart
498
- RECOVERED_BY_RETRY: 'retry',
499
- };
500
-
501
- export const errorCodes = {
502
- // ordered by error code values
503
- USER_CREATE_FAILED: 1400006,
504
- USER_ALREADY_PARTICIPANT: 1403001,
505
- CONVO_ALREADY_EXISTS: 1403010,
506
- ALREADY_ANNOUNCEMENT_SPACE: 1403014,
507
- NOT_ANNOUNCEMENT_SPACE: 1403015,
508
- USER_NOT_MODERATOR_IN_ANNOUNCEMENT_SPACE: 1403016,
509
- TEMP_ID_ALREADY_EXISTS: 1409001,
510
- PARENT_ACTIVITY_ID_NOT_FOUND_OR_INVALID: 14000015,
511
- };
512
- export const statusCodes = {
513
- // ordered by status codes
514
- NETWORK_OR_CORS: 0,
515
- BAD_REQUEST: 400,
516
- FORBIDDEN: 403,
517
- NOT_FOUND: 404,
518
- CONFLICT: 409,
519
- };
520
-
521
- export const errorObjects = {
522
- category: {
523
- media: 'media',
524
- expected: 'expected',
525
- },
526
- name: {
527
- mediaEngine: 'media-engine',
528
- },
529
- };
530
-
531
- export const UNKNOWN = 'unknown';
532
-
533
- export const CLIENT_NAME = 'webex-js-sdk';
534
- export const PLATFORM = 'Web';