@voicenter-team/events-sdk 0.0.118 → 0.0.119

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.
@@ -78,26 +78,6 @@ export declare type AllUsersStatusEvent = {
78
78
 
79
79
  export declare type AllUsersStatusEventSDK = EventTypeData<EventsEnum.ALL_USERS_STATUS>
80
80
 
81
- export declare type AllVoicebotsStatus = {
82
- /**
83
- * 0 - Connection was establishing successfully.
84
- */
85
- errorCode?: number;
86
- /**
87
- * “Ok” - Connection was establishing successfully.
88
- */
89
- errorDesc?: string;
90
- voicebots: Array<Voicebot>;
91
- /**
92
- * Server time at the moment of the event
93
- */
94
- servertime: number;
95
- /**
96
- * Difference in time between server and client
97
- */
98
- servertimeoffset: number;
99
- };
100
-
101
81
  declare class AuthClass {
102
82
  private readonly eventsSdkClass;
103
83
  constructor(eventsSdkClass: EventsSdkClass);
@@ -300,7 +280,6 @@ export declare interface EventDataMap {
300
280
  [EventsEnum.ALL_EXTENSION_STATUS]: AllExtensionStatusEvent
301
281
  [EventsEnum.ALL_DIALER_STATUS]: AllDialersStatusEvent
302
282
  [EventsEnum.ALL_USERS_STATUS]: AllUsersStatusEvent
303
- [EventsEnum.ALL_VOICEBOTS_STATUS]: AllVoicebotsStatus
304
283
  [EventsEnum.QUEUE_EVENT]: QueueEvent
305
284
  [EventsEnum.EXTENSION_EVENT]: ExtensionEvent
306
285
  [EventsEnum.DIALER_EVENT]: DialerEvent
@@ -309,11 +288,6 @@ export declare interface EventDataMap {
309
288
  [EventsEnum.KEEP_ALIVE_RESPONSE]: KeepAliveResponseEvent
310
289
  [EventsEnum.ONLINE_STATUS_EVENT]: OnlineStatusEvent
311
290
  [EventsEnum.EXTENSIONS_UPDATED]: ExtensionsUpdated
312
- [EventsEnum.VOICEBOT_SUBSCRIBED_TO_CALL]: SubscribedToVoicebotCall
313
- [EventsEnum.VOICEBOT_SUBSCRIBE_TO_CALL_FAILED]: SubscribeToVoicebotCallFailed
314
- [EventsEnum.VOICEBOT_INITIAL_CALL_HISTORY]: InitialVoicebotCallHistory
315
- [EventsEnum.VOICEBOT_UNSUBSCRIBED_FROM_CALL]: UnsubscribedFromVoicebotCall
316
- [EventsEnum.VOICEBOT_EVENT]: VoicebotEvent
317
291
  }
318
292
 
319
293
  /**
@@ -354,12 +328,6 @@ export declare enum EventsEnum {
354
328
  ONLINE_STATUS_EVENT = 'onlineStatusEvent',
355
329
  DIALER_EVENT = 'DialerEvent',
356
330
  EXTENSIONS_UPDATED = 'ExtensionsUpdated',
357
- ALL_VOICEBOTS_STATUS = 'AllVoicebotsStatus',
358
- VOICEBOT_SUBSCRIBE_TO_CALL_FAILED = 'subscribeToCallFailed',
359
- VOICEBOT_SUBSCRIBED_TO_CALL = 'subscribedToCall',
360
- VOICEBOT_INITIAL_CALL_HISTORY = 'initialCallHistory',
361
- VOICEBOT_UNSUBSCRIBED_FROM_CALL = 'unsubscribedFromCall',
362
- VOICEBOT_EVENT = 'VoicebotEvent',
363
331
  }
364
332
 
365
333
  /**
@@ -608,10 +576,6 @@ export declare type ExtensionCall = {
608
576
  */
609
577
  callername: string;
610
578
  callstatus: CallStatusEnum;
611
- /**
612
- * cam id
613
- */
614
- campaignID?: string;
615
579
  customdata: CustomData;
616
580
  /**
617
581
  * Is internal
@@ -796,18 +760,6 @@ export declare interface ExternalLoginResponse<T> {
796
760
  */
797
761
  export declare type GenericEventWrapper = EventWrappedSocketDataMap[EventTypeNames]
798
762
 
799
- export declare type InitialVoicebotCallHistory = {
800
- history: Array<VoicebotEventDataCall>;
801
- /**
802
- * Voicebot id
803
- */
804
- voicebotID: number;
805
- /**
806
- * Ivr unique id
807
- */
808
- IvrUniqueID: string;
809
- };
810
-
811
763
  export declare type KeepAliveResponseEvent = {
812
764
  /**
813
765
  * Is ok
@@ -1140,9 +1092,7 @@ export declare type ServerEmitEventCallbackRegistry = {
1140
1092
  */
1141
1093
  export declare interface ServerEmitEventDataMap {
1142
1094
  [ServerListenerEventsEnum.UPDATE_MONITORED_EXTENSIONS]: UpdateMonitoredExtensionsPayload
1143
- [ServerListenerEventsEnum.KEEP_ALIVE]: string,
1144
- [ServerListenerEventsEnum.SUBSCRIBE_VOICEBOT_CALL_UPDATES]: SubscriptionVoicebotCallUpdatesPayload,
1145
- [ServerListenerEventsEnum.UNSUBSCRIBE_VOICEBOT_CALL_UPDATES]: SubscriptionVoicebotCallUpdatesPayload
1095
+ [ServerListenerEventsEnum.KEEP_ALIVE]: string
1146
1096
  }
1147
1097
 
1148
1098
  /**
@@ -1153,9 +1103,7 @@ export declare type ServerEmitEventTypeNames = keyof ServerEmitEventDataMap
1153
1103
 
1154
1104
  export declare enum ServerListenerEventsEnum {
1155
1105
  UPDATE_MONITORED_EXTENSIONS = "updateMonitoredExtensions",
1156
- KEEP_ALIVE = "keepalive",
1157
- SUBSCRIBE_VOICEBOT_CALL_UPDATES = "subscribeVoicebotCallUpdates",
1158
- UNSUBSCRIBE_VOICEBOT_CALL_UPDATES = "unsubscribeVoicebotCallUpdates"
1106
+ KEEP_ALIVE = "keepalive"
1159
1107
  }
1160
1108
 
1161
1109
  export declare enum ServerParameter {
@@ -1261,12 +1209,6 @@ declare class SocketIoClass {
1261
1209
  private onQueueEvent;
1262
1210
  private onExtensionEvent;
1263
1211
  private onDialerEvent;
1264
- private onVoicebotEvent;
1265
- private onAllVoicebotsStatus;
1266
- private onVoicebotSubscribedToCall;
1267
- private onVoicebotSubscribeToCallFailed;
1268
- private onVoicebotInitialCallHistory;
1269
- private onVoicebotUnsubscribedFromCall;
1270
1212
  private onLoginStatusEvent;
1271
1213
  private onAllExtensionStatus;
1272
1214
  private onAllDialerStatus;
@@ -1299,37 +1241,6 @@ declare class SocketIoClass {
1299
1241
 
1300
1242
  export declare type SocketTyped = Socket_2<EventCallbackRegistry, ServerEmitEventCallbackRegistry>
1301
1243
 
1302
- export declare type SubscribedToVoicebotCall = {
1303
- /**
1304
- * subscribe success?
1305
- */
1306
- success: boolean;
1307
- /**
1308
- * voicebot id
1309
- */
1310
- voicebotID: number;
1311
- /**
1312
- * ivr id
1313
- */
1314
- IvrUniqueID: string;
1315
- };
1316
-
1317
- export declare type SubscribeToVoicebotCallFailed = {
1318
- /**
1319
- * error
1320
- */
1321
- error: string;
1322
- /**
1323
- * success
1324
- */
1325
- success: boolean;
1326
- };
1327
-
1328
- export declare interface SubscriptionVoicebotCallUpdatesPayload {
1329
- voicebotID: number,
1330
- IvrUniqueID: string
1331
- }
1332
-
1333
1244
  export declare type Summery = {
1334
1245
  /**
1335
1246
  * Representative
@@ -1343,9 +1254,6 @@ export declare type TestEventListener = (event: { test: string }) => void
1343
1254
 
1344
1255
  declare type TypedSocketIo = (...args: Parameters<typeof io>) => SocketTyped;
1345
1256
 
1346
- export declare type UnsubscribedFromVoicebotCall = {
1347
- };
1348
-
1349
1257
  export declare interface UpdateMonitoredExtensionsPayload {
1350
1258
  extensionsString: string
1351
1259
  }
@@ -1369,146 +1277,6 @@ export declare type User = {
1369
1277
 
1370
1278
  export declare type UserSDK = User
1371
1279
 
1372
- export declare type Voicebot = {
1373
- Calls: Array<VoicebotEventDataCall>;
1374
- /**
1375
- * Acc id
1376
- */
1377
- AccountID: string;
1378
- /**
1379
- * Voicebot id
1380
- */
1381
- VoicebotID: number;
1382
- /**
1383
- * Voicebot name
1384
- */
1385
- VoicebotName: string;
1386
- };
1387
-
1388
- export declare type VoicebotCall = {
1389
- };
1390
-
1391
- export declare type VoicebotCallHistory = {
1392
- };
1393
-
1394
- export declare type VoicebotEvent = {
1395
- data: VoicebotEventData;
1396
- type: VoicebotEventTypeEnum;
1397
- reason: VoicebotEventReasonEnum;
1398
- /**
1399
- * Event name (voicebot)
1400
- */
1401
- eventName: string;
1402
- /**
1403
- * servertime
1404
- */
1405
- servertime: number;
1406
- /**
1407
- * servertimeoffset
1408
- */
1409
- servertimeoffset: number;
1410
- /**
1411
- * telephonyservertime
1412
- */
1413
- telephonyservertime: number;
1414
- };
1415
-
1416
- export declare type VoicebotEventData = {
1417
- Call: VoicebotEventDataCall;
1418
- /**
1419
- * account id
1420
- */
1421
- AccountID: number;
1422
- /**
1423
- * voicebot id
1424
- */
1425
- VoicebotID: number;
1426
- /**
1427
- * ivr id
1428
- */
1429
- IvrUniqueID: string;
1430
- /**
1431
- * voicebot name
1432
- */
1433
- VoicebotName: string;
1434
- };
1435
-
1436
- export declare type VoicebotEventDataCall = {
1437
- /**
1438
- * did
1439
- */
1440
- did: string;
1441
- /**
1442
- * ivrid
1443
- */
1444
- ivrid: string;
1445
- /**
1446
- * CallerID
1447
- */
1448
- CallerID: string;
1449
- /**
1450
- * callType
1451
- */
1452
- callType: string;
1453
- /**
1454
- * aiSummary
1455
- */
1456
- aiSummary: string;
1457
- direction: VoicebotEventDataCallDirectionEnum;
1458
- callStatus: VoicebotEventDataCallStatusEnum;
1459
- /**
1460
- * callername
1461
- */
1462
- callername?: string;
1463
- customData: any;
1464
- eventsData: Array<VoicebotEventDataCallEventsData>;
1465
- /**
1466
- * IvrUniqueID
1467
- */
1468
- IvrUniqueID: string;
1469
- /**
1470
- * callStarted
1471
- */
1472
- callStarted: number;
1473
- };
1474
-
1475
- export declare enum VoicebotEventDataCallDirectionEnum {
1476
- INCOMING = 'INCOMING',
1477
- OUTGOING = 'OUTGOING',
1478
- }
1479
-
1480
- export declare type VoicebotEventDataCallEventsData = {
1481
- Role: VoicebotEventDataCallEventsDataRoleEnum;
1482
- Type: VoicebotEventDataCallEventsDataTypeEnum;
1483
- ToolName?: string;
1484
- Timestamp: number;
1485
- Transcript?: string;
1486
- };
1487
-
1488
- export declare type VoicebotEventDataCallEventsDataRoleEnum = {
1489
- };
1490
-
1491
- export declare enum VoicebotEventDataCallEventsDataTypeEnum {
1492
- CALLSTARTED = 'CallStarted',
1493
- TRANSCRIPT = 'Transcript',
1494
- TOOL_EXECUTED = 'ToolExecuted',
1495
- TOOL_RESPONSE = 'ToolResponse',
1496
- CALL_ENDED = 'CallEnded',
1497
- }
1498
-
1499
- export declare enum VoicebotEventDataCallStatusEnum {
1500
- TALKING = 'Talking',
1501
- ENDED = 'Ended',
1502
- }
1503
-
1504
- export declare enum VoicebotEventReasonEnum {
1505
- CALLSTARTED = 'CALLSTARTED',
1506
- }
1507
-
1508
- export declare enum VoicebotEventTypeEnum {
1509
- UNKNOWN = 'UNKNOWN',
1510
- }
1511
-
1512
1280
  /**
1513
1281
  * The structure of received socket events.
1514
1282
  */