@webex/internal-plugin-metrics 3.0.0-beta.22 → 3.0.0-beta.220

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 (67) hide show
  1. package/dist/call-diagnostic/call-diagnostic-metrics-batcher.js +56 -0
  2. package/dist/call-diagnostic/call-diagnostic-metrics-batcher.js.map +1 -0
  3. package/dist/call-diagnostic/call-diagnostic-metrics-latencies.js +451 -0
  4. package/dist/call-diagnostic/call-diagnostic-metrics-latencies.js.map +1 -0
  5. package/dist/call-diagnostic/call-diagnostic-metrics.js +645 -0
  6. package/dist/call-diagnostic/call-diagnostic-metrics.js.map +1 -0
  7. package/dist/call-diagnostic/call-diagnostic-metrics.util.js +276 -0
  8. package/dist/call-diagnostic/call-diagnostic-metrics.util.js.map +1 -0
  9. package/dist/call-diagnostic/config.js +580 -0
  10. package/dist/call-diagnostic/config.js.map +1 -0
  11. package/dist/call-diagnostic/generated-types-temp/ClientEvent.js +7 -0
  12. package/dist/call-diagnostic/generated-types-temp/ClientEvent.js.map +1 -0
  13. package/dist/call-diagnostic/generated-types-temp/Event.js +7 -0
  14. package/dist/call-diagnostic/generated-types-temp/Event.js.map +1 -0
  15. package/dist/call-diagnostic/generated-types-temp/MediaQualityEvent.js +7 -0
  16. package/dist/call-diagnostic/generated-types-temp/MediaQualityEvent.js.map +1 -0
  17. package/dist/config.js +20 -1
  18. package/dist/config.js.map +1 -1
  19. package/dist/index.js +25 -1
  20. package/dist/index.js.map +1 -1
  21. package/dist/metrics.js +30 -30
  22. package/dist/metrics.js.map +1 -1
  23. package/dist/metrics.types.js +7 -0
  24. package/dist/metrics.types.js.map +1 -0
  25. package/dist/new-metrics.js +249 -0
  26. package/dist/new-metrics.js.map +1 -0
  27. package/dist/types/batcher.d.ts +2 -0
  28. package/dist/types/call-diagnostic/call-diagnostic-metrics-batcher.d.ts +2 -0
  29. package/dist/types/call-diagnostic/call-diagnostic-metrics-latencies.d.ts +189 -0
  30. package/dist/types/call-diagnostic/call-diagnostic-metrics.d.ts +356 -0
  31. package/dist/types/call-diagnostic/call-diagnostic-metrics.util.d.ts +73 -0
  32. package/dist/types/call-diagnostic/config.d.ts +86 -0
  33. package/dist/types/call-diagnostic/generated-types-temp/ClientEvent.d.ts +1112 -0
  34. package/dist/types/call-diagnostic/generated-types-temp/Event.d.ts +4851 -0
  35. package/dist/types/call-diagnostic/generated-types-temp/MediaQualityEvent.d.ts +2121 -0
  36. package/dist/types/client-metrics-batcher.d.ts +2 -0
  37. package/dist/types/config.d.ts +35 -0
  38. package/dist/types/index.d.ts +11 -0
  39. package/dist/types/metrics.d.ts +3 -0
  40. package/dist/types/metrics.types.d.ts +95 -0
  41. package/dist/types/new-metrics.d.ts +119 -0
  42. package/package.json +12 -8
  43. package/src/call-diagnostic/call-diagnostic-metrics-batcher.ts +51 -0
  44. package/src/call-diagnostic/call-diagnostic-metrics-latencies.ts +408 -0
  45. package/src/call-diagnostic/call-diagnostic-metrics.ts +655 -0
  46. package/src/call-diagnostic/call-diagnostic-metrics.util.ts +280 -0
  47. package/src/call-diagnostic/config.ts +578 -0
  48. package/src/call-diagnostic/generated-types-temp/ClientEvent.ts +2395 -0
  49. package/src/call-diagnostic/generated-types-temp/Event.ts +7762 -0
  50. package/src/call-diagnostic/generated-types-temp/MediaQualityEvent.ts +2321 -0
  51. package/src/config.js +19 -0
  52. package/src/index.ts +41 -0
  53. package/src/metrics.js +25 -27
  54. package/src/metrics.types.ts +140 -0
  55. package/src/new-metrics.ts +223 -0
  56. package/test/unit/spec/call-diagnostic/call-diagnostic-metrics-batcher.ts +243 -0
  57. package/test/unit/spec/call-diagnostic/call-diagnostic-metrics-latencies.ts +474 -0
  58. package/test/unit/spec/call-diagnostic/call-diagnostic-metrics.ts +1015 -0
  59. package/test/unit/spec/call-diagnostic/call-diagnostic-metrics.util.ts +454 -0
  60. package/test/unit/spec/metrics.js +65 -97
  61. package/test/unit/spec/new-metrics.ts +155 -0
  62. package/tsconfig.json +6 -0
  63. package/dist/call-diagnostic-events-batcher.js +0 -60
  64. package/dist/call-diagnostic-events-batcher.js.map +0 -1
  65. package/src/call-diagnostic-events-batcher.js +0 -62
  66. package/src/index.js +0 -17
  67. package/test/unit/spec/call-diagnostic-events-batcher.js +0 -195
@@ -0,0 +1,356 @@
1
+ import { StatelessWebexPlugin } from '@webex/webex-core';
2
+ import { Event, ClientType, SubClientType, NetworkType, ClientEvent, SubmitClientEventOptions, MediaQualityEvent, SubmitMQEOptions, SubmitMQEPayload, ClientEventError, ClientEventPayload } from '../metrics.types';
3
+ type GetOriginOptions = {
4
+ clientType: ClientType;
5
+ subClientType: SubClientType;
6
+ networkType?: NetworkType;
7
+ };
8
+ type GetIdentifiersOptions = {
9
+ meeting?: any;
10
+ mediaConnections?: any[];
11
+ correlationId?: string;
12
+ };
13
+ /**
14
+ * @description Util class to handle Call Analyzer Metrics
15
+ * @export
16
+ * @class CallDiagnosticMetrics
17
+ */
18
+ export default class CallDiagnosticMetrics extends StatelessWebexPlugin {
19
+ private callDiagnosticEventsBatcher;
20
+ /**
21
+ * Constructor
22
+ * @param args
23
+ */
24
+ constructor(...args: any[]);
25
+ /**
26
+ * Returns the login type of the current user
27
+ * @returns one of 'login-ci','unverified-guest', null
28
+ */
29
+ getCurLoginType(): "login-ci" | "unverified-guest";
30
+ /**
31
+ * Returns if the meeting has converged architecture enabled
32
+ * @param options.meetingId
33
+ */
34
+ getIsConvergedArchitectureEnabled({ meetingId }: {
35
+ meetingId?: string;
36
+ }): boolean;
37
+ /**
38
+ * Get origin object for Call Diagnostic Event payload.
39
+ * @param options
40
+ * @param meetingId
41
+ * @returns
42
+ */
43
+ getOrigin(options: GetOriginOptions, meetingId?: string): {
44
+ name: "antares" | "beech" | "breakout" | "cb" | "cloudproxy" | "edonus" | "endpoint" | "givr" | "hecate" | "hedge" | "hesiod" | "homer" | "superhomer" | "l2sip" | "linus" | "locus" | "mcc" | "mcs" | "mercury" | "mes" | "mjs" | "mmp" | "mygdon" | "orpheus" | "page" | "poros" | "rhesos" | "terminus" | "tpgw" | "ucc" | "wdm" | "webexivr";
45
+ userAgent: string;
46
+ buildType?: "debug" | "test" | "prod" | "tap" | "analyzer-test";
47
+ upgradeChannel?: string;
48
+ instanceId?: string;
49
+ networkType: "unknown" | "wifi" | "ethernet" | "cellular";
50
+ localIP?: string;
51
+ usingProxy?: boolean;
52
+ mediaEngineSoftwareVersion?: string;
53
+ environment?: string;
54
+ newEnvironment?: string;
55
+ clientInfo?: {
56
+ os: "windows" | "mac" | "ios" | "android" | "chrome" | "linux" | "other" | "uwp-arm64";
57
+ osVersion: string;
58
+ localIP?: string;
59
+ gatewayIP?: string;
60
+ macAddress?: string;
61
+ localNetworkPrefix?: string;
62
+ publicNetworkPrefix?: string;
63
+ browserLaunchMethod?: "activex" | "npapi" | "extension" | "cwsapi" | "java" | "tfs" | "webacd" | "url-handler" | "thinclient";
64
+ clientLaunchMethod?: "url-handler" | "universal-link" | "voice-command" | "notification" | "manual" | "teams-cross-launch";
65
+ browser?: string;
66
+ browserVersion?: string;
67
+ clientType?: "SIP" | "MEETING_CENTER" | "EVENT_CENTER" | "TRAINING_CENTER" | "TEAMS_CLIENT" | "TEAMS_DEVICE" | "TEAMS_SHARE" | "RECORDING" | "CLOUD_AWARE_SIP" | "TEAMS_WXC_CLIENT" | "WXC_CLIENT" | "WXC_DEVICE" | "WEBEX_JS_SDK" | "VOICEA_CLIENT" | "CISCO_SIP_GW" | "WEBEX_SDK" | "CPAAS_THIRD_PARTY_SDK" | "WXC_THIRD_PARTY";
68
+ subClientType?: "DESKTOP_APP" | "DESKTOP_APP_VDI" | "DEVICE_CURRENT" | "DEVICE_LEGACY_2020" | "HVDI_APP" | "MOBILE_APP" | "VDI_APP" | "WEB_APP" | "MOBILE_NETWORK" | "HOLOGRAM_HEADSET_APP";
69
+ clientVersion?: string;
70
+ localClientVersion?: string;
71
+ modelNumber?: string;
72
+ joinFirstUpdateLater?: "ep-enabled" | "sp-enabled" | "not-enabled";
73
+ standbyUsed?: boolean;
74
+ prefetchDocShowUsed?: boolean;
75
+ fastJoinUsed?: boolean;
76
+ clientDownloadSize?: number;
77
+ clientDownloadFileCount?: number;
78
+ nodeId?: number;
79
+ machineInfo?: string;
80
+ parentAppName?: string;
81
+ parentAppInPermitList?: boolean;
82
+ meetingSiteType?: "train" | "webex-11" | "orion";
83
+ CDNEnabled?: boolean;
84
+ clientMajorVersion?: string;
85
+ majorVersion?: number;
86
+ minorVersion?: number;
87
+ revision?: number;
88
+ isValidClientVersion?: boolean;
89
+ cpuInfo?: {
90
+ description: string;
91
+ clockSpeedGigaHertz: number;
92
+ numberOfCores: number;
93
+ architecture: "unknown" | "intel32" | "intel64" | "amd32" | "amd64" | "arm32" | "arm64";
94
+ staticPerformance?: string;
95
+ };
96
+ shareType?: "cb-normal-share" | "ce-airplay-share" | "ce-direct-share" | "ce-gui-loopback-share" | "ce-input-source-share" | "ce-input-source-share-hdmi" | "ce-input-source-share-usbc" | "ce-jpg-share" | "ce-miracast-share" | "mcs-normal-share" | "mcs-normal-audio-share" | "mcs-hfps-share" | "mcs-hfps-audio-share";
97
+ videoDisplayMode?: "grid-view" | "active-speaker-view";
98
+ videoLayoutType?: "stack" | "stackWithShare" | "sideBySide" | "sideBySideWithShare" | "grid" | "floatingActive" | "floatingThumbnail" | "floatingGrid" | "overlay" | "focus" | "prominent" | "focusWithShare" | "prominentWithShare" | "equal" | "equalWithShare";
99
+ videoRenderType?: "wme" | "client_d3d" | "client_gdi";
100
+ vdiInfo?: unknown;
101
+ is64BitsClient?: boolean;
102
+ webexAppVersion?: string;
103
+ launch32BitsReason?: "forcewin32" | "disablewin64" | "platform_win32" | "platform_arm" | "platform_unknown" | "version_below_41.11";
104
+ inMeetingUpdate?: boolean;
105
+ mtaVersion?: string;
106
+ isWarholOpening?: boolean;
107
+ };
108
+ isHybridMedia?: boolean;
109
+ originData?: {};
110
+ };
111
+ /**
112
+ * Gather identifier details for call diagnostic payload.
113
+ * @throws Error if initialization fails.
114
+ * @param options
115
+ */
116
+ getIdentifiers(options: GetIdentifiersOptions): {
117
+ attendeeId?: string;
118
+ breakoutGroupId?: string;
119
+ breakoutMoveId?: string;
120
+ breakoutSessionId?: string;
121
+ confluenceId?: string;
122
+ cpaasIdentifiers?: {
123
+ imiTenantId: string;
124
+ devClientId: string;
125
+ imiServiceId: string;
126
+ imiAppId: string;
127
+ sessionId: string;
128
+ sessionInstanceId: string;
129
+ };
130
+ csdmDeviceUrl?: string;
131
+ destinationBreakoutSessionId?: string;
132
+ destinationLocusSessionId?: string;
133
+ destinationLocusUrl?: string;
134
+ destinationVenueId?: string;
135
+ deviceId?: string;
136
+ ivrCallId?: string;
137
+ ivrDialogId?: string;
138
+ ivrId?: string;
139
+ locusId?: string;
140
+ locusSessionId?: string;
141
+ locusStartTime?: string;
142
+ locusUrl?: string;
143
+ mediaAgentAlias?: string;
144
+ mediaAgentGroupId?: string;
145
+ meetClusterName?: string;
146
+ meetingLookupUrl?: string;
147
+ meetingOrgId?: string;
148
+ msteamsTenantGuid?: string;
149
+ msteamsConferenceId?: string;
150
+ oauth2ClientId?: string;
151
+ orgId?: string;
152
+ roomId?: string;
153
+ sipCallId?: string;
154
+ sipSessionId?: {
155
+ local?: string;
156
+ remote?: string;
157
+ };
158
+ sipUri?: string;
159
+ subConfId?: string;
160
+ tenantId?: string;
161
+ trackingId?: string;
162
+ userId?: string;
163
+ venueId?: string;
164
+ venueUrl?: string;
165
+ whiteboardUrl?: string;
166
+ webexConferenceId?: number;
167
+ webexClusterName?: string;
168
+ webexConferenceIdStr?: string;
169
+ webexDataCenter?: string;
170
+ webexGuestId?: number;
171
+ webexMeetingId?: number;
172
+ webexNodeId?: number;
173
+ webexSiteId?: number;
174
+ webexSiteName?: string;
175
+ webexUserId?: number;
176
+ webexWebDomain?: string;
177
+ correlationId: string;
178
+ } | {
179
+ attendeeId?: string;
180
+ breakoutGroupId?: string;
181
+ breakoutMoveId?: string;
182
+ breakoutSessionId?: string;
183
+ confluenceId?: string;
184
+ cpaasIdentifiers?: {
185
+ imiTenantId: string;
186
+ devClientId: string;
187
+ imiServiceId: string;
188
+ imiAppId: string;
189
+ sessionId: string;
190
+ sessionInstanceId: string;
191
+ };
192
+ csdmDeviceUrl?: string;
193
+ destinationBreakoutSessionId?: string;
194
+ destinationLocusSessionId?: string;
195
+ destinationLocusUrl?: string;
196
+ destinationVenueId?: string;
197
+ deviceId?: string;
198
+ ivrCallId?: string;
199
+ ivrDialogId?: string;
200
+ ivrId?: string;
201
+ locusId?: string;
202
+ locusSessionId?: string;
203
+ locusStartTime?: string;
204
+ locusUrl?: string;
205
+ mediaAgentAlias?: string;
206
+ mediaAgentGroupId?: string;
207
+ meetClusterName?: string;
208
+ meetingLookupUrl?: string;
209
+ meetingOrgId?: string;
210
+ msteamsTenantGuid?: string;
211
+ msteamsConferenceId?: string;
212
+ oauth2ClientId?: string;
213
+ orgId?: string;
214
+ provisionalCorrelationId?: string;
215
+ roomId?: string;
216
+ sipCallId?: string;
217
+ sipSessionId?: {
218
+ local?: string;
219
+ remote?: string;
220
+ };
221
+ sipUri?: string;
222
+ subConfId?: string;
223
+ tenantId?: string;
224
+ trackingId?: string;
225
+ userId?: string;
226
+ venueId?: string;
227
+ venueUrl?: string;
228
+ whiteboardUrl?: string;
229
+ webexConferenceId?: number;
230
+ webexClusterName?: string;
231
+ webexConferenceIdStr?: string;
232
+ webexDataCenter?: string;
233
+ webexGuestId?: number;
234
+ webexMeetingId?: number;
235
+ webexNodeId?: number;
236
+ webexSiteId?: number;
237
+ webexSiteName?: string;
238
+ webexUserId?: number;
239
+ webexWebDomain?: string;
240
+ correlationId: string;
241
+ };
242
+ /**
243
+ * Create diagnostic event, which can hold client event, feature event or MQE event data.
244
+ * This just initiates the shared properties that are required for all the 3 event categories.
245
+ * @param eventData
246
+ * @param options
247
+ * @returns
248
+ */
249
+ prepareDiagnosticEvent(eventData: Event['event'], options: any): Event;
250
+ /**
251
+ * TODO: NOT IMPLEMENTED
252
+ * Submit Feature Event
253
+ * @returns
254
+ */
255
+ submitFeatureEvent(): void;
256
+ /**
257
+ * Submit Media Quality Event
258
+ * @param args - submit params
259
+ * @param arg.name - event key
260
+ * @param arg.payload - additional payload to be merge with the default payload
261
+ * @param arg.options - options
262
+ */
263
+ submitMQE({ name, payload, options, }: {
264
+ name: MediaQualityEvent['name'];
265
+ payload: SubmitMQEPayload;
266
+ options: SubmitMQEOptions;
267
+ }): void;
268
+ /**
269
+ * Return Client Event payload by client error code
270
+ * @param arg - get error arg
271
+ * @param arg.clientErrorCode
272
+ * @param arg.serviceErrorCode
273
+ * @returns
274
+ */
275
+ getErrorPayloadForClientErrorCode({ clientErrorCode, serviceErrorCode, serviceErrorName, }: {
276
+ clientErrorCode: number;
277
+ serviceErrorCode: any;
278
+ serviceErrorName?: any;
279
+ }): ClientEventError;
280
+ /**
281
+ * Generate error payload for Client Event
282
+ * @param rawError
283
+ */
284
+ generateClientEventErrorPayload(rawError: any): {
285
+ fatal: boolean;
286
+ category: "other" | "signaling" | "media" | "expected";
287
+ errorDescription?: string;
288
+ errorCode?: number;
289
+ errorCodeStr?: string;
290
+ httpCode?: number;
291
+ errorData?: {};
292
+ shownToUser: boolean;
293
+ serviceErrorCode?: number;
294
+ name: "other" | "media-engine" | "ice.failed" | "locus.response" | "locus.leave" | "client.leave" | "media-device" | "media-sca";
295
+ };
296
+ /**
297
+ * Create client event object for in meeting events
298
+ * @param arg - create args
299
+ * @param arg.event - event key
300
+ * @param arg.options - options
301
+ * @returns object
302
+ */
303
+ private createClientEventObjectInMeeting;
304
+ /**
305
+ * Create client event object for pre meeting events
306
+ * @param arg - create args
307
+ * @param arg.event - event key
308
+ * @param arg.options - payload
309
+ * @returns object
310
+ */
311
+ private createClientEventObjectPreMeeting;
312
+ /**
313
+ * Prepare Client Event CA event.
314
+ * @param arg - submit params
315
+ * @param arg.event - event key
316
+ * @param arg.payload - additional payload to be merged with default payload
317
+ * @param arg.options - payload
318
+ * @returns {any} options to be with fetch
319
+ * @throws
320
+ */
321
+ private prepareClientEvent;
322
+ /**
323
+ * Submit Client Event CA event.
324
+ * @param arg - submit params
325
+ * @param arg.event - event key
326
+ * @param arg.payload - additional payload to be merged with default payload
327
+ * @param arg.options - payload
328
+ * @throws
329
+ */
330
+ submitClientEvent({ name, payload, options, }: {
331
+ name: ClientEvent['name'];
332
+ payload?: ClientEventPayload;
333
+ options?: SubmitClientEventOptions;
334
+ }): Promise<any>;
335
+ /**
336
+ * Prepare the event and send the request to metrics-a service.
337
+ * @param event
338
+ * @returns promise
339
+ */
340
+ submitToCallDiagnostics(event: Event): Promise<any>;
341
+ /**
342
+ * Builds a request options object to later be passed to fetch().
343
+ * @param arg - submit params
344
+ * @param arg.event - event key
345
+ * @param arg.payload - additional payload to be merged with default payload
346
+ * @param arg.options - client event options
347
+ * @returns {Promise<any>}
348
+ * @throws
349
+ */
350
+ buildClientEventFetchRequestOptions({ name, payload, options, }: {
351
+ name: ClientEvent['name'];
352
+ payload?: ClientEventPayload;
353
+ options?: SubmitClientEventOptions;
354
+ }): Promise<any>;
355
+ }
356
+ export {};
@@ -0,0 +1,73 @@
1
+ import { Event } from '../metrics.types';
2
+ export declare const anonymizeIPAddress: (localIp: any) => string;
3
+ /**
4
+ * Returns a formated string of the user agent.
5
+ *
6
+ * @returns {string} formatted user agent information
7
+ */
8
+ export declare const userAgentToString: ({ clientName, webexVersion }: {
9
+ clientName: any;
10
+ webexVersion: any;
11
+ }) => string;
12
+ /**
13
+ * Iterates object recursively and removes any
14
+ * property that returns isEmpty for it's associated value
15
+ * isEmpty = implementation from Lodash.
16
+ *
17
+ * It modifies the object in place (mutable)
18
+ *
19
+ * @param obj - input
20
+ * @returns
21
+ */
22
+ export declare const clearEmptyKeysRecursively: (obj: any) => void;
23
+ /**
24
+ * Locus error codes start with 2. The next three digits are the
25
+ * HTTP status code related to the error code (like 400, 403, 502, etc.)
26
+ * The remaining three digits are just an increasing integer.
27
+ * If it is 7 digits and starts with a 2, it is locus.
28
+ *
29
+ * @param errorCode
30
+ * @returns {boolean}
31
+ */
32
+ export declare const isLocusServiceErrorCode: (errorCode: string | number) => boolean;
33
+ /**
34
+ * MeetingInfo errors sometimes has body.data.meetingInfo object
35
+ * MeetingInfo errors come with a wbxappapi url
36
+ *
37
+ * @param {Object} rawError
38
+ * @returns {boolean}
39
+ */
40
+ export declare const isMeetingInfoServiceError: (rawError: any) => boolean;
41
+ /**
42
+ * MDN Media Devices getUserMedia() method returns a name if it errs
43
+ * Documentation can be found here: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia
44
+ *
45
+ * @param errorCode
46
+ * @returns
47
+ */
48
+ export declare const isBrowserMediaErrorName: (errorName: any) => boolean;
49
+ /**
50
+ * @param webClientDomain
51
+ * @returns
52
+ */
53
+ export declare const getBuildType: (webClientDomain: any) => Event['origin']['buildType'];
54
+ /**
55
+ * Prepare metric item for submission.
56
+ * @param {Object} webex sdk instance
57
+ * @param {Object} item
58
+ * @returns {Object} prepared item
59
+ */
60
+ export declare const prepareDiagnosticMetricItem: (webex: any, item: any) => any;
61
+ /**
62
+ * Sets the originTime value(s) before the request/fetch.
63
+ * This function is only useful if you are about to submit a metrics
64
+ * request using pre-built fetch options;
65
+ *
66
+ * @param {any} options
67
+ * @returns {any} the updated options object
68
+ */
69
+ export declare const setMetricTimings: (options: any) => any;
70
+ export declare const extractVersionMetadata: (version: string) => {
71
+ majorVersion: number;
72
+ minorVersion: number;
73
+ };
@@ -0,0 +1,86 @@
1
+ import { ClientEventError } from '../metrics.types';
2
+ export declare const NEW_LOCUS_ERROR_CLIENT_CODE = 4008;
3
+ export declare const MEETING_INFO_LOOKUP_ERROR_CLIENT_CODE = 4100;
4
+ export declare const UNKNOWN_ERROR = 9999;
5
+ export declare const ICE_FAILURE_CLIENT_CODE = 2004;
6
+ export declare const WBX_APP_API_URL = "wbxappapi";
7
+ export declare const BROWSER_MEDIA_ERROR_NAME_TO_CLIENT_ERROR_CODES_MAP: {
8
+ [x: string]: number;
9
+ };
10
+ export declare const SERVICE_ERROR_CODES_TO_CLIENT_ERROR_CODES_MAP: {
11
+ 58400: number;
12
+ 99002: number;
13
+ 99009: number;
14
+ 58500: number;
15
+ 400001: number;
16
+ 403004: number;
17
+ 403028: number;
18
+ 403032: number;
19
+ 403034: number;
20
+ 403036: number;
21
+ 403038: number;
22
+ 403040: number;
23
+ 403041: number;
24
+ 403047: number;
25
+ 403408: number;
26
+ 403043: number;
27
+ 403048: number;
28
+ 403049: number;
29
+ 403100: number;
30
+ 403101: number;
31
+ 403102: number;
32
+ 403103: number;
33
+ 403104: number;
34
+ 404001: number;
35
+ 404006: number;
36
+ 423001: number;
37
+ 423005: number;
38
+ 423006: number;
39
+ 423010: number;
40
+ 423012: number;
41
+ 423013: number;
42
+ 429005: number;
43
+ 2403001: number;
44
+ 2403002: number;
45
+ 2403003: number;
46
+ 2403004: number;
47
+ 2403018: number;
48
+ 2403019: number;
49
+ 2423003: number;
50
+ 2423004: number;
51
+ 2423005: number;
52
+ 2423006: number;
53
+ 2423016: number;
54
+ 2423017: number;
55
+ 2423018: number;
56
+ 2423007: number;
57
+ 2403010: number;
58
+ 2403014: number;
59
+ 2403015: number;
60
+ 2423010: number;
61
+ 2400008: number;
62
+ 2400011: number;
63
+ 2400012: number;
64
+ 2403007: number;
65
+ 2401002: number;
66
+ 2404002: number;
67
+ 2400009: number;
68
+ 2400025: number;
69
+ 2423009: number;
70
+ 2403022: number;
71
+ 2423008: number;
72
+ 2400006: number;
73
+ 2400014: number;
74
+ 2404001: number;
75
+ 2403025: number;
76
+ 2405001: number;
77
+ 2409005: number;
78
+ 100002: number;
79
+ 100007: number;
80
+ 100001: number;
81
+ 100006: number;
82
+ 100005: number;
83
+ 100004: number;
84
+ };
85
+ export declare const CLIENT_ERROR_CODE_TO_ERROR_PAYLOAD: Record<number, Partial<ClientEventError>>;
86
+ export declare const CALL_DIAGNOSTIC_EVENT_FAILED_TO_SEND = "js_sdk_call_diagnostic_event_failed_to_send";