@voicenter-team/events-sdk 0.0.120 → 0.0.122

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.
@@ -98,6 +98,12 @@ export declare type AllVoicebotsStatus = {
98
98
  servertimeoffset: number;
99
99
  };
100
100
 
101
+ export declare type AllVoiceBotsStatusEventSDK = EventTypeData<EventsEnum.ALL_VOICEBOTS_STATUS>
102
+
103
+ export declare interface AllVoicebotStatusExtended extends Omit<AllVoicebotsStatus, 'voicebots'> {
104
+ voicebots: Array<VoicebotExtended>
105
+ }
106
+
101
107
  declare class AuthClass {
102
108
  private readonly eventsSdkClass;
103
109
  constructor(eventsSdkClass: EventsSdkClass);
@@ -325,6 +331,9 @@ export declare interface EventDataMapExtended extends EventDataMap {
325
331
  [EventsEnum.ALL_EXTENSION_STATUS]: AllExtensionStatusEventExtended
326
332
  [EventsEnum.QUEUE_EVENT]: QueueEventUTCExtended
327
333
  [EventsEnum.LOGIN_STATUS]: LoginStatusEventUTCExtended
334
+ [EventsEnum.ALL_VOICEBOTS_STATUS]: AllVoicebotStatusExtended
335
+ [EventsEnum.VOICEBOT_EVENT]: VoicebotEventExtended
336
+ [EventsEnum.VOICEBOT_INITIAL_CALL_HISTORY]: InitialVoicebotCallHistoryExtended
328
337
  }
329
338
 
330
339
  declare class EventEmitterClass {
@@ -808,6 +817,10 @@ export declare type InitialVoicebotCallHistory = {
808
817
  IvrUniqueID: string;
809
818
  };
810
819
 
820
+ export declare interface InitialVoicebotCallHistoryExtended extends Omit<InitialVoicebotCallHistory, 'history'> {
821
+ history: Array<VoicebotCallUTCExtended>
822
+ }
823
+
811
824
  export declare type KeepAliveResponseEvent = {
812
825
  /**
813
826
  * Is ok
@@ -1392,6 +1405,12 @@ export declare type VoicebotCall = {
1392
1405
  export declare type VoicebotCallHistory = {
1393
1406
  };
1394
1407
 
1408
+ export declare interface VoicebotCallUTCExtended extends Omit<VoicebotEventDataCall, 'eventsData'>{
1409
+ callStarted_UTC: number
1410
+ callStarted_UTC_CLIENT: number
1411
+ eventsData: Array<VoicebotEventDataCallEventsDataExtended>
1412
+ }
1413
+
1395
1414
  export declare type VoicebotEvent = {
1396
1415
  data: VoicebotEventData;
1397
1416
  type: VoicebotEventTypeEnum;
@@ -1486,6 +1505,11 @@ export declare type VoicebotEventDataCallEventsData = {
1486
1505
  Transcript?: string;
1487
1506
  };
1488
1507
 
1508
+ export declare interface VoicebotEventDataCallEventsDataExtended extends VoicebotEventDataCallEventsData {
1509
+ Timestamp_UTC: number
1510
+ Timestamp_UTC_CLIENT: number
1511
+ }
1512
+
1489
1513
  export declare type VoicebotEventDataCallEventsDataRoleEnum = {
1490
1514
  };
1491
1515
 
@@ -1502,14 +1526,31 @@ export declare enum VoicebotEventDataCallStatusEnum {
1502
1526
  ENDED = 'Ended',
1503
1527
  }
1504
1528
 
1529
+ export declare interface VoicebotEventDataExtended extends Omit<VoicebotEventData, 'Call'> {
1530
+ Call: VoicebotCallUTCExtended
1531
+ }
1532
+
1533
+ export declare interface VoicebotEventExtended extends Omit<VoicebotEvent, 'data'> {
1534
+ data: VoicebotEventDataExtended
1535
+ }
1536
+
1505
1537
  export declare enum VoicebotEventReasonEnum {
1506
1538
  CALLSTARTED = 'CALLSTARTED',
1507
1539
  }
1508
1540
 
1541
+ export declare type VoiceBotEventSDK = EventTypeData<EventsEnum.VOICEBOT_EVENT>
1542
+
1509
1543
  export declare enum VoicebotEventTypeEnum {
1510
1544
  UNKNOWN = 'UNKNOWN',
1511
1545
  }
1512
1546
 
1547
+ export declare interface VoicebotExtended extends Omit<Voicebot, 'Calls'> {
1548
+ Calls: Array<VoicebotCallUTCExtended>
1549
+
1550
+ }
1551
+
1552
+ export declare type VoiceBotInitialCallHistoryEventSDK = EventTypeData<EventsEnum.VOICEBOT_INITIAL_CALL_HISTORY>
1553
+
1513
1554
  /**
1514
1555
  * The structure of received socket events.
1515
1556
  */