@wildix/wda-stream-client 1.1.4 → 1.1.6

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConferenceConsumeDirection = exports.ChatTag = exports.ChatEventType = exports.ChatConsumeEventType = exports.CallFlowConsumeStatus = exports.CallEventType = exports.CallEndConsume = exports.CallFlowAttachmentConsumeType = exports.CallEndBy = exports.CallFlowStatus = exports.CallAnalyticsLiveProgressEventTrigger = exports.LiveEventType = exports.CallConsumeEventType = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChatStatus = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.CallTranscriptionSpeaker = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.WhatsAppStatus = exports.WhatsAppEventType = exports.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = void 0;
4
- exports.PresenceNotAvailableException = exports.TelephonyStatus = exports.PresenceStatus = exports.MatchNotFoundException = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = exports.ConsumeEventInputEvent = exports.UsageEventType = exports.LanguageDetection = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = void 0;
3
+ exports.ChatEventType = exports.ChatConsumeEventType = exports.CallFlowConsumeStatus = exports.CallEventType = exports.CallEndConsume = exports.CallFlowAttachmentConsumeType = exports.CallEndBy = exports.CallFlowStatus = exports.CallAnalyticsLiveProgressEventTrigger = exports.LiveEventType = exports.CallConsumeEventType = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.CallTranscriptionSpeaker = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.WhatsAppStatus = exports.WhatsAppEventType = exports.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = void 0;
4
+ exports.PresenceNotAvailableException = exports.TelephonyStatus = exports.PresenceStatus = exports.MatchNotFoundException = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.WebsocketTopic = exports.WebsocketAction = exports.ConsumeEventInputEvent = exports.UsageEventType = exports.LanguageDetection = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.PresenceConsumeEventType = exports.ConferenceTranscriptionSentiment = exports.ConferenceEventType = exports.ConferenceConsumeEventType = exports.ConferenceConsumeDirection = exports.ChatTag = void 0;
5
5
  const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
6
6
  class ValidationException extends WdaStreamServiceException_1.WdaStreamServiceException {
7
7
  name = "ValidationException";
@@ -145,6 +145,14 @@ exports.ChatDirection = {
145
145
  INTERNAL: "INTERNAL",
146
146
  OUTBOUND: "OUTBOUND",
147
147
  };
148
+ exports.ChatParticipantRole = {
149
+ AGENT: "AGENT",
150
+ CLIENT: "CLIENT",
151
+ };
152
+ exports.ChatParticipantType = {
153
+ LOCAL: "LOCAL",
154
+ REMOTE: "REMOTE",
155
+ };
148
156
  exports.ChatStatus = {
149
157
  COMPLETED: "COMPLETED",
150
158
  MISSED: "MISSED",
@@ -193,6 +201,7 @@ exports.MessageSmsStatus = {
193
201
  TRYING: "trying",
194
202
  };
195
203
  exports.MessageType = {
204
+ DELETED: "deleted",
196
205
  REGULAR: "regular",
197
206
  SYSTEM: "system",
198
207
  };
@@ -311,6 +320,7 @@ exports.ChatEventType = {
311
320
  LIVE_COMPLETE_EVENT: "ChatAnalyticsLiveCompleteEvent",
312
321
  LIVE_INTERRUPTED_EVENT: "ChatAnalyticsLiveInterruptedEvent",
313
322
  LIVE_PROGRESS_EVENT: "ChatAnalyticsLiveProgressEvent",
323
+ LIVE_TRANSCRIPTION_EVENT: "ChatAnalyticsLiveTranscriptionEvent",
314
324
  MANAGER_MISSED_EVENT: "ChatAnalyticsManagerMissedEvent",
315
325
  RECORD_EVENT: "ChatAnalyticsRecordEvent",
316
326
  TRANSCRIPTION_RECORD_EVENT: "ChatAnalyticsTranscriptionRecordEvent",
@@ -158,6 +158,7 @@ const de_DescribeEventCommand = async (output, context) => {
158
158
  'ChatAnalyticsLiveCompleteEvent': smithy_client_1._json,
159
159
  'ChatAnalyticsLiveInterruptedEvent': smithy_client_1._json,
160
160
  'ChatAnalyticsLiveProgressEvent': smithy_client_1._json,
161
+ 'ChatAnalyticsLiveTranscriptionEvent': smithy_client_1._json,
161
162
  'ChatAnalyticsManagerMissedEvent': smithy_client_1._json,
162
163
  'ChatAnalyticsRecordEvent': smithy_client_1._json,
163
164
  'ChatAnalyticsTranscriptionRecordEvent': smithy_client_1._json,
@@ -139,6 +139,14 @@ export const ChatDirection = {
139
139
  INTERNAL: "INTERNAL",
140
140
  OUTBOUND: "OUTBOUND",
141
141
  };
142
+ export const ChatParticipantRole = {
143
+ AGENT: "AGENT",
144
+ CLIENT: "CLIENT",
145
+ };
146
+ export const ChatParticipantType = {
147
+ LOCAL: "LOCAL",
148
+ REMOTE: "REMOTE",
149
+ };
142
150
  export const ChatStatus = {
143
151
  COMPLETED: "COMPLETED",
144
152
  MISSED: "MISSED",
@@ -187,6 +195,7 @@ export const MessageSmsStatus = {
187
195
  TRYING: "trying",
188
196
  };
189
197
  export const MessageType = {
198
+ DELETED: "deleted",
190
199
  REGULAR: "regular",
191
200
  SYSTEM: "system",
192
201
  };
@@ -305,6 +314,7 @@ export const ChatEventType = {
305
314
  LIVE_COMPLETE_EVENT: "ChatAnalyticsLiveCompleteEvent",
306
315
  LIVE_INTERRUPTED_EVENT: "ChatAnalyticsLiveInterruptedEvent",
307
316
  LIVE_PROGRESS_EVENT: "ChatAnalyticsLiveProgressEvent",
317
+ LIVE_TRANSCRIPTION_EVENT: "ChatAnalyticsLiveTranscriptionEvent",
308
318
  MANAGER_MISSED_EVENT: "ChatAnalyticsManagerMissedEvent",
309
319
  RECORD_EVENT: "ChatAnalyticsRecordEvent",
310
320
  TRANSCRIPTION_RECORD_EVENT: "ChatAnalyticsTranscriptionRecordEvent",
@@ -147,6 +147,7 @@ export const de_DescribeEventCommand = async (output, context) => {
147
147
  'ChatAnalyticsLiveCompleteEvent': _json,
148
148
  'ChatAnalyticsLiveInterruptedEvent': _json,
149
149
  'ChatAnalyticsLiveProgressEvent': _json,
150
+ 'ChatAnalyticsLiveTranscriptionEvent': _json,
150
151
  'ChatAnalyticsManagerMissedEvent': _json,
151
152
  'ChatAnalyticsRecordEvent': _json,
152
153
  'ChatAnalyticsTranscriptionRecordEvent': _json,
@@ -460,6 +460,7 @@ declare const ConsumeEventCommand_base: {
460
460
  * company: "STRING_VALUE", // required
461
461
  * time: Number("long"), // required
462
462
  * data: { // ChatMessageConsumeEventData
463
+ * subject: "STRING_VALUE", // required
463
464
  * channel: { // Channel
464
465
  * subject: "STRING_VALUE",
465
466
  * description: "STRING_VALUE",
@@ -649,7 +650,7 @@ declare const ConsumeEventCommand_base: {
649
650
  * whatsappStatus: "trying" || "sent" || "delivered" || "error",
650
651
  * sms: true || false,
651
652
  * smsStatus: "sent" || "delivered" || "trying" || "error",
652
- * type: "regular" || "system", // required
653
+ * type: "regular" || "system" || "deleted", // required
653
654
  * giphy: {
654
655
  * id: "STRING_VALUE", // required
655
656
  * size: "STRING_VALUE", // required
@@ -690,6 +691,8 @@ declare const ConsumeEventCommand_base: {
690
691
  * ],
691
692
  * customersCount: Number("int"), // required
692
693
  * },
694
+ * service: "STRING_VALUE",
695
+ * serviceTitle: "STRING_VALUE",
693
696
  * },
694
697
  * },
695
698
  * chatNew: { // ChatNewConsumeEvent
@@ -588,22 +588,22 @@ declare const DescribeEventCommand_base: {
588
588
  * // cost: Number("double"), // required
589
589
  * // },
590
590
  * // ChatAnalyticsLiveCompleteEvent: { // ChatAnalyticsLiveCompleteEvent
591
- * // id: "STRING_VALUE", // required
592
- * // chatId: "STRING_VALUE",
591
+ * // id: "STRING_VALUE",
592
+ * // sessionId: "STRING_VALUE",
593
593
  * // time: Number("long"), // required
594
594
  * // company: "STRING_VALUE", // required
595
595
  * // event: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
596
596
  * // },
597
597
  * // ChatAnalyticsLiveInterruptedEvent: { // ChatAnalyticsLiveInterruptedEvent
598
- * // id: "STRING_VALUE", // required
599
- * // chatId: "STRING_VALUE",
598
+ * // id: "STRING_VALUE",
599
+ * // sessionId: "STRING_VALUE",
600
600
  * // time: Number("long"), // required
601
601
  * // company: "STRING_VALUE", // required
602
602
  * // event: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
603
603
  * // },
604
604
  * // ChatAnalyticsLiveProgressEvent: { // ChatAnalyticsLiveProgressEvent
605
- * // id: "STRING_VALUE", // required
606
- * // chatId: "STRING_VALUE",
605
+ * // id: "STRING_VALUE",
606
+ * // sessionId: "STRING_VALUE",
607
607
  * // time: Number("long"), // required
608
608
  * // company: "STRING_VALUE", // required
609
609
  * // event: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
@@ -681,63 +681,50 @@ declare const DescribeEventCommand_base: {
681
681
  * // createdBy: "STRING_VALUE", // required
682
682
  * // updatedAt: "STRING_VALUE",
683
683
  * // },
684
- * // participants: { // ChatParticipants
685
- * // agents: [ // UsersList
686
- * // {
687
- * // id: "STRING_VALUE", // required
688
- * // name: "STRING_VALUE",
689
- * // email: "STRING_VALUE",
690
- * // phone: "STRING_VALUE",
691
- * // picture: "STRING_VALUE",
692
- * // locale: "STRING_VALUE",
693
- * // timeZone: "STRING_VALUE",
694
- * // company: "STRING_VALUE",
695
- * // bot: true || false,
696
- * // pbxDomain: "STRING_VALUE",
697
- * // pbxPort: "STRING_VALUE",
698
- * // pbxExtension: "STRING_VALUE",
699
- * // pbxSerial: "STRING_VALUE",
700
- * // pbxUserId: "STRING_VALUE",
701
- * // createdAt: "STRING_VALUE",
702
- * // updatedAt: "STRING_VALUE",
703
- * // },
704
- * // ],
705
- * // agentsCount: Number("int"), // required
706
- * // customers: [
707
- * // {
708
- * // id: "STRING_VALUE", // required
709
- * // name: "STRING_VALUE",
710
- * // email: "STRING_VALUE",
711
- * // phone: "STRING_VALUE",
712
- * // picture: "STRING_VALUE",
713
- * // locale: "STRING_VALUE",
714
- * // timeZone: "STRING_VALUE",
715
- * // company: "STRING_VALUE",
716
- * // bot: true || false,
717
- * // pbxDomain: "STRING_VALUE",
718
- * // pbxPort: "STRING_VALUE",
719
- * // pbxExtension: "STRING_VALUE",
720
- * // pbxSerial: "STRING_VALUE",
721
- * // pbxUserId: "STRING_VALUE",
722
- * // createdAt: "STRING_VALUE",
723
- * // updatedAt: "STRING_VALUE",
724
- * // },
725
- * // ],
726
- * // customersCount: Number("int"), // required
727
- * // },
684
+ * // participants: [ // ChatLiveParticipantsList // required
685
+ * // { // ChatParticipantInfo
686
+ * // id: "STRING_VALUE", // required
687
+ * // name: "STRING_VALUE",
688
+ * // email: "STRING_VALUE",
689
+ * // phone: "STRING_VALUE",
690
+ * // picture: "STRING_VALUE",
691
+ * // locale: "STRING_VALUE",
692
+ * // timeZone: "STRING_VALUE",
693
+ * // company: "STRING_VALUE",
694
+ * // bot: true || false,
695
+ * // pbxDomain: "STRING_VALUE",
696
+ * // pbxPort: "STRING_VALUE",
697
+ * // pbxExtension: "STRING_VALUE",
698
+ * // pbxSerial: "STRING_VALUE",
699
+ * // pbxUserId: "STRING_VALUE",
700
+ * // createdAt: "STRING_VALUE",
701
+ * // updatedAt: "STRING_VALUE",
702
+ * // type: "REMOTE" || "LOCAL", // required
703
+ * // role: "CLIENT" || "AGENT", // required
704
+ * // },
705
+ * // ],
728
706
  * // direction: "INTERNAL" || "INBOUND" || "OUTBOUND", // required
729
707
  * // status: "WAITFIRSTREPLY" || "WAITREPLYFROMGUEST" || "WAITREPLYFROMAGENT" || "COMPLETED" || "MISSED", // required
730
708
  * // },
709
+ * // ChatAnalyticsLiveTranscriptionEvent: { // ChatAnalyticsLiveTranscriptionEvent
710
+ * // id: "STRING_VALUE",
711
+ * // sessionId: "STRING_VALUE",
712
+ * // time: Number("long"), // required
713
+ * // company: "STRING_VALUE", // required
714
+ * // event: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
715
+ * // chatStartTime: Number("long"), // required
716
+ * // message: "STRING_VALUE", // required
717
+ * // },
731
718
  * // ChatAnalyticsManagerMissedEvent: { // ChatAnalyticsManagerMissedEvent
732
- * // id: "STRING_VALUE", // required
733
- * // chatId: "STRING_VALUE",
719
+ * // id: "STRING_VALUE",
720
+ * // sessionId: "STRING_VALUE",
734
721
  * // time: Number("long"), // required
735
722
  * // company: "STRING_VALUE", // required
736
723
  * // event: "STRING_VALUE", // required
737
724
  * // },
738
725
  * // ChatAnalyticsRecordEvent: { // ChatAnalyticsRecordEvent
739
- * // id: "STRING_VALUE", // required
740
- * // chatId: "STRING_VALUE",
726
+ * // id: "STRING_VALUE",
727
+ * // sessionId: "STRING_VALUE",
741
728
  * // time: Number("long"), // required
742
729
  * // company: "STRING_VALUE", // required
743
730
  * // pbx: "STRING_VALUE",
@@ -820,9 +807,10 @@ declare const DescribeEventCommand_base: {
820
807
  * // updatedAt: "STRING_VALUE",
821
808
  * // },
822
809
  * // status: "WAITFIRSTREPLY" || "WAITREPLYFROMGUEST" || "WAITREPLYFROMAGENT" || "COMPLETED" || "MISSED",
823
- * // participants: {
824
- * // agents: [
825
- * // {
810
+ * // participants: [ // ChatParticipantsList // required
811
+ * // { // ChatParticipant
812
+ * // id: "STRING_VALUE", // required
813
+ * // info: {
826
814
  * // id: "STRING_VALUE", // required
827
815
  * // name: "STRING_VALUE",
828
816
  * // email: "STRING_VALUE",
@@ -839,151 +827,25 @@ declare const DescribeEventCommand_base: {
839
827
  * // pbxUserId: "STRING_VALUE",
840
828
  * // createdAt: "STRING_VALUE",
841
829
  * // updatedAt: "STRING_VALUE",
830
+ * // type: "REMOTE" || "LOCAL", // required
831
+ * // role: "CLIENT" || "AGENT", // required
842
832
  * // },
843
- * // ],
844
- * // agentsCount: Number("int"), // required
845
- * // customers: [
846
- * // "<User>",
847
- * // ],
848
- * // customersCount: Number("int"), // required
849
- * // },
833
+ * // },
834
+ * // ],
850
835
  * // type: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
851
836
  * // },
852
837
  * // ChatAnalyticsTranscriptionRecordEvent: { // ChatAnalyticsTranscriptionRecordEvent
853
- * // id: "STRING_VALUE", // required
854
- * // chatId: "STRING_VALUE",
838
+ * // id: "STRING_VALUE",
839
+ * // sessionId: "STRING_VALUE",
855
840
  * // time: Number("long"), // required
856
841
  * // company: "STRING_VALUE", // required
857
- * // messages: [ // ChatTranscriptionMessagesList // required
858
- * // { // Message
859
- * // text: "STRING_VALUE",
860
- * // elements: [ // ElementsList
861
- * // { // Element Union: only one key present
862
- * // template: { // MessageTemplateConfig
863
- * // whatsapp: { // TemplateWithParameters
864
- * // name: "STRING_VALUE", // required
865
- * // parameters: [ // ListTemplateParameter // required
866
- * // { // TemplateParameter
867
- * // name: "STRING_VALUE", // required
868
- * // value: "STRING_VALUE", // required
869
- * // },
870
- * // ],
871
- * // },
872
- * // },
873
- * // actions: [ // ActionsElementsList
874
- * // { // ActionElement Union: only one key present
875
- * // button: { // ButtonElement
876
- * // text: "STRING_VALUE", // required
877
- * // handler: { // ButtonHandler Union: only one key present
878
- * // link: { // ButtonLinkHandler
879
- * // url: "STRING_VALUE", // required
880
- * // },
881
- * // reply: { // ButtonReplyHandler
882
- * // text: "STRING_VALUE",
883
- * // },
884
- * // action: { // ButtonActionHandler
885
- * // id: "STRING_VALUE", // required
886
- * // },
887
- * // },
888
- * // variant: "contained" || "outlined",
889
- * // disabled: true || false,
890
- * // },
891
- * // },
892
- * // ],
893
- * // },
894
- * // ],
895
- * // attachments: [ // MessageAttachmentList
896
- * // { // MessageAttachment
897
- * // id: "STRING_VALUE", // required
898
- * // fsId: "STRING_VALUE", // required
899
- * // mime: "STRING_VALUE",
900
- * // name: "STRING_VALUE", // required
901
- * // size: Number("int"), // required
902
- * // width: Number("int"),
903
- * // height: Number("int"),
904
- * // thumbnail: "STRING_VALUE",
905
- * // },
906
- * // ],
907
- * // quote: { // MessageQuote
908
- * // messageId: "STRING_VALUE", // required
909
- * // channelId: "STRING_VALUE", // required
910
- * // user: "<User>", // required
911
- * // text: "STRING_VALUE",
912
- * // attachments: [
913
- * // {
914
- * // id: "STRING_VALUE", // required
915
- * // fsId: "STRING_VALUE", // required
916
- * // mime: "STRING_VALUE",
917
- * // name: "STRING_VALUE", // required
918
- * // size: Number("int"), // required
919
- * // width: Number("int"),
920
- * // height: Number("int"),
921
- * // thumbnail: "STRING_VALUE",
922
- * // },
923
- * // ],
924
- * // forward: { // MessageForward
925
- * // forwardCompany: "STRING_VALUE",
926
- * // forwardDate: "STRING_VALUE", // required
927
- * // forwardEmail: "STRING_VALUE",
928
- * // forwardName: "STRING_VALUE",
929
- * // messageId: "STRING_VALUE", // required
930
- * // channelId: "STRING_VALUE", // required
931
- * // },
932
- * // mentions: [
933
- * // "<User>",
934
- * // ],
935
- * // giphy: { // MessageGiphy
936
- * // id: "STRING_VALUE", // required
937
- * // size: "STRING_VALUE", // required
938
- * // url: "STRING_VALUE", // required
939
- * // height: "STRING_VALUE", // required
940
- * // width: "STRING_VALUE", // required
941
- * // },
942
- * // createdAt: "STRING_VALUE", // required
943
- * // updatedAt: "STRING_VALUE",
944
- * // },
945
- * // forward: {
946
- * // forwardCompany: "STRING_VALUE",
947
- * // forwardDate: "STRING_VALUE", // required
948
- * // forwardEmail: "STRING_VALUE",
949
- * // forwardName: "STRING_VALUE",
950
- * // messageId: "STRING_VALUE", // required
951
- * // channelId: "STRING_VALUE", // required
952
- * // },
953
- * // whatsapp: true || false,
954
- * // whatsappStatus: "trying" || "sent" || "delivered" || "error",
955
- * // sms: true || false,
956
- * // smsStatus: "sent" || "delivered" || "trying" || "error",
957
- * // type: "regular" || "system", // required
958
- * // giphy: {
959
- * // id: "STRING_VALUE", // required
960
- * // size: "STRING_VALUE", // required
961
- * // url: "STRING_VALUE", // required
962
- * // height: "STRING_VALUE", // required
963
- * // width: "STRING_VALUE", // required
964
- * // },
965
- * // silent: true || false,
966
- * // event: "STRING_VALUE",
967
- * // messageId: "STRING_VALUE", // required
968
- * // channelId: "STRING_VALUE", // required
969
- * // user: "<User>", // required
970
- * // edit: true || false,
971
- * // mentions: "<UsersList>",
972
- * // latestReactions: [ // ReactionList
973
- * // { // Reaction
974
- * // type: "STRING_VALUE",
975
- * // userId: "STRING_VALUE",
976
- * // messageId: "STRING_VALUE",
977
- * // user: "<User>",
978
- * // },
979
- * // ],
980
- * // reactionCounts: { // ReactionCounts
981
- * // "<keys>": Number("int"),
982
- * // },
983
- * // createdAt: "STRING_VALUE", // required
984
- * // updatedAt: "STRING_VALUE",
842
+ * // transcription: { // ChatTranscription
843
+ * // start: Number("long"), // required
844
+ * // end: Number("long"), // required
845
+ * // messages: { // ChatTranscriptionMessagesMap // required
846
+ * // "<keys>": "STRING_VALUE",
985
847
  * // },
986
- * // ],
848
+ * // },
987
849
  * // type: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
988
850
  * // },
989
851
  * // ConferenceAnalyticsLiveProgressEvent: { // ConferenceAnalyticsLiveProgressEvent
@@ -2151,8 +2013,8 @@ declare const DescribeEventCommand_base: {
2151
2013
  * // time: Number("long"), // required
2152
2014
  * // integrationId: "STRING_VALUE", // required
2153
2015
  * // data: {
2154
- * // id: "STRING_VALUE", // required
2155
- * // chatId: "STRING_VALUE",
2016
+ * // id: "STRING_VALUE",
2017
+ * // sessionId: "STRING_VALUE",
2156
2018
  * // time: Number("long"), // required
2157
2019
  * // company: "STRING_VALUE", // required
2158
2020
  * // event: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
@@ -2196,7 +2058,24 @@ declare const DescribeEventCommand_base: {
2196
2058
  * // service: "STRING_VALUE",
2197
2059
  * // serviceTitle: "STRING_VALUE",
2198
2060
  * // serviceRecipient: "STRING_VALUE",
2199
- * // assignee: "<User>",
2061
+ * // assignee: {
2062
+ * // id: "STRING_VALUE", // required
2063
+ * // name: "STRING_VALUE",
2064
+ * // email: "STRING_VALUE",
2065
+ * // phone: "STRING_VALUE",
2066
+ * // picture: "STRING_VALUE",
2067
+ * // locale: "STRING_VALUE",
2068
+ * // timeZone: "STRING_VALUE",
2069
+ * // company: "STRING_VALUE",
2070
+ * // bot: true || false,
2071
+ * // pbxDomain: "STRING_VALUE",
2072
+ * // pbxPort: "STRING_VALUE",
2073
+ * // pbxExtension: "STRING_VALUE",
2074
+ * // pbxSerial: "STRING_VALUE",
2075
+ * // pbxUserId: "STRING_VALUE",
2076
+ * // createdAt: "STRING_VALUE",
2077
+ * // updatedAt: "STRING_VALUE",
2078
+ * // },
2200
2079
  * // telephony: true || false,
2201
2080
  * // sms: true || false,
2202
2081
  * // mms: true || false,
@@ -2213,12 +2092,28 @@ declare const DescribeEventCommand_base: {
2213
2092
  * // createdBy: "STRING_VALUE", // required
2214
2093
  * // updatedAt: "STRING_VALUE",
2215
2094
  * // },
2216
- * // participants: {
2217
- * // agents: "<UsersList>",
2218
- * // agentsCount: Number("int"), // required
2219
- * // customers: "<UsersList>",
2220
- * // customersCount: Number("int"), // required
2221
- * // },
2095
+ * // participants: [ // required
2096
+ * // {
2097
+ * // id: "STRING_VALUE", // required
2098
+ * // name: "STRING_VALUE",
2099
+ * // email: "STRING_VALUE",
2100
+ * // phone: "STRING_VALUE",
2101
+ * // picture: "STRING_VALUE",
2102
+ * // locale: "STRING_VALUE",
2103
+ * // timeZone: "STRING_VALUE",
2104
+ * // company: "STRING_VALUE",
2105
+ * // bot: true || false,
2106
+ * // pbxDomain: "STRING_VALUE",
2107
+ * // pbxPort: "STRING_VALUE",
2108
+ * // pbxExtension: "STRING_VALUE",
2109
+ * // pbxSerial: "STRING_VALUE",
2110
+ * // pbxUserId: "STRING_VALUE",
2111
+ * // createdAt: "STRING_VALUE",
2112
+ * // updatedAt: "STRING_VALUE",
2113
+ * // type: "REMOTE" || "LOCAL", // required
2114
+ * // role: "CLIENT" || "AGENT", // required
2115
+ * // },
2116
+ * // ],
2222
2117
  * // direction: "INTERNAL" || "INBOUND" || "OUTBOUND", // required
2223
2118
  * // status: "WAITFIRSTREPLY" || "WAITREPLYFROMGUEST" || "WAITREPLYFROMAGENT" || "COMPLETED" || "MISSED", // required
2224
2119
  * // },
@@ -2231,8 +2126,8 @@ declare const DescribeEventCommand_base: {
2231
2126
  * // time: Number("long"), // required
2232
2127
  * // integrationId: "STRING_VALUE", // required
2233
2128
  * // data: {
2234
- * // id: "STRING_VALUE", // required
2235
- * // chatId: "STRING_VALUE",
2129
+ * // id: "STRING_VALUE",
2130
+ * // sessionId: "STRING_VALUE",
2236
2131
  * // time: Number("long"), // required
2237
2132
  * // company: "STRING_VALUE", // required
2238
2133
  * // event: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
@@ -2246,8 +2141,8 @@ declare const DescribeEventCommand_base: {
2246
2141
  * // time: Number("long"), // required
2247
2142
  * // integrationId: "STRING_VALUE", // required
2248
2143
  * // data: {
2249
- * // id: "STRING_VALUE", // required
2250
- * // chatId: "STRING_VALUE",
2144
+ * // id: "STRING_VALUE",
2145
+ * // sessionId: "STRING_VALUE",
2251
2146
  * // time: Number("long"), // required
2252
2147
  * // company: "STRING_VALUE", // required
2253
2148
  * // event: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
@@ -2261,8 +2156,8 @@ declare const DescribeEventCommand_base: {
2261
2156
  * // time: Number("long"), // required
2262
2157
  * // integrationId: "STRING_VALUE", // required
2263
2158
  * // data: {
2264
- * // id: "STRING_VALUE", // required
2265
- * // chatId: "STRING_VALUE",
2159
+ * // id: "STRING_VALUE",
2160
+ * // sessionId: "STRING_VALUE",
2266
2161
  * // time: Number("long"), // required
2267
2162
  * // company: "STRING_VALUE", // required
2268
2163
  * // event: "STRING_VALUE", // required
@@ -2276,8 +2171,8 @@ declare const DescribeEventCommand_base: {
2276
2171
  * // time: Number("long"), // required
2277
2172
  * // integrationId: "STRING_VALUE", // required
2278
2173
  * // data: {
2279
- * // id: "STRING_VALUE", // required
2280
- * // chatId: "STRING_VALUE",
2174
+ * // id: "STRING_VALUE",
2175
+ * // sessionId: "STRING_VALUE",
2281
2176
  * // time: Number("long"), // required
2282
2177
  * // company: "STRING_VALUE", // required
2283
2178
  * // pbx: "STRING_VALUE",
@@ -2325,7 +2220,24 @@ declare const DescribeEventCommand_base: {
2325
2220
  * // service: "STRING_VALUE",
2326
2221
  * // serviceTitle: "STRING_VALUE",
2327
2222
  * // serviceRecipient: "STRING_VALUE",
2328
- * // assignee: "<User>",
2223
+ * // assignee: {
2224
+ * // id: "STRING_VALUE", // required
2225
+ * // name: "STRING_VALUE",
2226
+ * // email: "STRING_VALUE",
2227
+ * // phone: "STRING_VALUE",
2228
+ * // picture: "STRING_VALUE",
2229
+ * // locale: "STRING_VALUE",
2230
+ * // timeZone: "STRING_VALUE",
2231
+ * // company: "STRING_VALUE",
2232
+ * // bot: true || false,
2233
+ * // pbxDomain: "STRING_VALUE",
2234
+ * // pbxPort: "STRING_VALUE",
2235
+ * // pbxExtension: "STRING_VALUE",
2236
+ * // pbxSerial: "STRING_VALUE",
2237
+ * // pbxUserId: "STRING_VALUE",
2238
+ * // createdAt: "STRING_VALUE",
2239
+ * // updatedAt: "STRING_VALUE",
2240
+ * // },
2329
2241
  * // telephony: true || false,
2330
2242
  * // sms: true || false,
2331
2243
  * // mms: true || false,
@@ -2343,12 +2255,12 @@ declare const DescribeEventCommand_base: {
2343
2255
  * // updatedAt: "STRING_VALUE",
2344
2256
  * // },
2345
2257
  * // status: "WAITFIRSTREPLY" || "WAITREPLYFROMGUEST" || "WAITREPLYFROMAGENT" || "COMPLETED" || "MISSED",
2346
- * // participants: {
2347
- * // agents: "<UsersList>",
2348
- * // agentsCount: Number("int"), // required
2349
- * // customers: "<UsersList>",
2350
- * // customersCount: Number("int"), // required
2351
- * // },
2258
+ * // participants: [ // required
2259
+ * // {
2260
+ * // id: "STRING_VALUE", // required
2261
+ * // info: "<ChatParticipantInfo>", // required
2262
+ * // },
2263
+ * // ],
2352
2264
  * // type: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
2353
2265
  * // },
2354
2266
  * // },
@@ -2515,7 +2427,7 @@ declare const DescribeEventCommand_base: {
2515
2427
  * // },
2516
2428
  * // CallEventType: "CallAnalyticsLiveProgressEvent" || "CallAnalyticsLiveCompleteEvent" || "CallAnalyticsLiveInterruptedEvent" || "CallAnalyticsLiveTranscriptionEvent" || "CallAnalyticsRecordEvent" || "CallAnalyticsTranscriptionRecordEvent" || "CallAnalyticsCostRecordEvent",
2517
2429
  * // ConferenceEventType: "ConferenceAnalyticsLiveProgressEvent" || "ConferenceAnalyticsLiveCompleteEvent" || "ConferenceAnalyticsLiveInterruptedEvent" || "ConferenceAnalyticsLiveTranscriptionEvent" || "ConferenceAnalyticsLiveJoinEvent" || "ConferenceAnalyticsLiveLeaveEvent" || "ConferenceAnalyticsRecordEvent" || "ConferenceAnalyticsTranscriptionRecordEvent",
2518
- * // ChatEventType: "ChatAnalyticsLiveCompleteEvent" || "ChatAnalyticsLiveInterruptedEvent" || "ChatAnalyticsLiveProgressEvent" || "ChatAnalyticsManagerMissedEvent" || "ChatAnalyticsRecordEvent" || "ChatAnalyticsTranscriptionRecordEvent",
2430
+ * // ChatEventType: "ChatAnalyticsLiveCompleteEvent" || "ChatAnalyticsLiveInterruptedEvent" || "ChatAnalyticsLiveProgressEvent" || "ChatAnalyticsLiveTranscriptionEvent" || "ChatAnalyticsManagerMissedEvent" || "ChatAnalyticsRecordEvent" || "ChatAnalyticsTranscriptionRecordEvent",
2519
2431
  * // PresenceEventType: "PresenceAnalyticsStatusEvent" || "PresenceAnalyticsConferenceEvent" || "PresenceAnalyticsTelephonyEvent",
2520
2432
  * // };
2521
2433
  *
@@ -260,8 +260,8 @@ declare const QueryConversationsCommand_base: {
260
260
  * // ],
261
261
  * // chats: [ // QueryConversationsChatsList // required
262
262
  * // { // ChatAnalyticsLiveProgressEvent
263
- * // id: "STRING_VALUE", // required
264
- * // chatId: "STRING_VALUE",
263
+ * // id: "STRING_VALUE",
264
+ * // sessionId: "STRING_VALUE",
265
265
  * // time: Number("long"), // required
266
266
  * // company: "STRING_VALUE", // required
267
267
  * // event: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
@@ -339,50 +339,28 @@ declare const QueryConversationsCommand_base: {
339
339
  * // createdBy: "STRING_VALUE", // required
340
340
  * // updatedAt: "STRING_VALUE",
341
341
  * // },
342
- * // participants: { // ChatParticipants
343
- * // agents: [ // UsersList
344
- * // {
345
- * // id: "STRING_VALUE", // required
346
- * // name: "STRING_VALUE",
347
- * // email: "STRING_VALUE",
348
- * // phone: "STRING_VALUE",
349
- * // picture: "STRING_VALUE",
350
- * // locale: "STRING_VALUE",
351
- * // timeZone: "STRING_VALUE",
352
- * // company: "STRING_VALUE",
353
- * // bot: true || false,
354
- * // pbxDomain: "STRING_VALUE",
355
- * // pbxPort: "STRING_VALUE",
356
- * // pbxExtension: "STRING_VALUE",
357
- * // pbxSerial: "STRING_VALUE",
358
- * // pbxUserId: "STRING_VALUE",
359
- * // createdAt: "STRING_VALUE",
360
- * // updatedAt: "STRING_VALUE",
361
- * // },
362
- * // ],
363
- * // agentsCount: Number("int"), // required
364
- * // customers: [
365
- * // {
366
- * // id: "STRING_VALUE", // required
367
- * // name: "STRING_VALUE",
368
- * // email: "STRING_VALUE",
369
- * // phone: "STRING_VALUE",
370
- * // picture: "STRING_VALUE",
371
- * // locale: "STRING_VALUE",
372
- * // timeZone: "STRING_VALUE",
373
- * // company: "STRING_VALUE",
374
- * // bot: true || false,
375
- * // pbxDomain: "STRING_VALUE",
376
- * // pbxPort: "STRING_VALUE",
377
- * // pbxExtension: "STRING_VALUE",
378
- * // pbxSerial: "STRING_VALUE",
379
- * // pbxUserId: "STRING_VALUE",
380
- * // createdAt: "STRING_VALUE",
381
- * // updatedAt: "STRING_VALUE",
382
- * // },
383
- * // ],
384
- * // customersCount: Number("int"), // required
385
- * // },
342
+ * // participants: [ // ChatLiveParticipantsList // required
343
+ * // { // ChatParticipantInfo
344
+ * // id: "STRING_VALUE", // required
345
+ * // name: "STRING_VALUE",
346
+ * // email: "STRING_VALUE",
347
+ * // phone: "STRING_VALUE",
348
+ * // picture: "STRING_VALUE",
349
+ * // locale: "STRING_VALUE",
350
+ * // timeZone: "STRING_VALUE",
351
+ * // company: "STRING_VALUE",
352
+ * // bot: true || false,
353
+ * // pbxDomain: "STRING_VALUE",
354
+ * // pbxPort: "STRING_VALUE",
355
+ * // pbxExtension: "STRING_VALUE",
356
+ * // pbxSerial: "STRING_VALUE",
357
+ * // pbxUserId: "STRING_VALUE",
358
+ * // createdAt: "STRING_VALUE",
359
+ * // updatedAt: "STRING_VALUE",
360
+ * // type: "REMOTE" || "LOCAL", // required
361
+ * // role: "CLIENT" || "AGENT", // required
362
+ * // },
363
+ * // ],
386
364
  * // direction: "INTERNAL" || "INBOUND" || "OUTBOUND", // required
387
365
  * // status: "WAITFIRSTREPLY" || "WAITREPLYFROMGUEST" || "WAITREPLYFROMAGENT" || "COMPLETED" || "MISSED", // required
388
366
  * // },
@@ -686,20 +686,57 @@ export declare const ChatDirection: {
686
686
  export type ChatDirection = typeof ChatDirection[keyof typeof ChatDirection];
687
687
  /**
688
688
  * @public
689
+ * @enum
689
690
  */
690
- export interface ChatParticipants {
691
- /**
692
- * A list of Agents available in the Chat, up to 8 items, sorted by name.
693
- * @public
694
- */
695
- agents?: (User)[] | undefined;
696
- agentsCount: number;
697
- /**
698
- * A list of Customers available in the Chat, up to 8 items, sorted by name.
699
- * @public
700
- */
701
- customers?: (User)[] | undefined;
702
- customersCount: number;
691
+ export declare const ChatParticipantRole: {
692
+ readonly AGENT: "AGENT";
693
+ readonly CLIENT: "CLIENT";
694
+ };
695
+ /**
696
+ * @public
697
+ */
698
+ export type ChatParticipantRole = typeof ChatParticipantRole[keyof typeof ChatParticipantRole];
699
+ /**
700
+ * @public
701
+ * @enum
702
+ */
703
+ export declare const ChatParticipantType: {
704
+ readonly LOCAL: "LOCAL";
705
+ readonly REMOTE: "REMOTE";
706
+ };
707
+ /**
708
+ * @public
709
+ */
710
+ export type ChatParticipantType = typeof ChatParticipantType[keyof typeof ChatParticipantType];
711
+ /**
712
+ * @public
713
+ */
714
+ export interface ChatParticipantInfo {
715
+ id: string;
716
+ name?: string | undefined;
717
+ email?: string | undefined;
718
+ phone?: string | undefined;
719
+ picture?: string | undefined;
720
+ locale?: string | undefined;
721
+ timeZone?: string | undefined;
722
+ company?: string | undefined;
723
+ bot?: boolean | undefined;
724
+ pbxDomain?: string | undefined;
725
+ pbxPort?: string | undefined;
726
+ pbxExtension?: string | undefined;
727
+ pbxSerial?: string | undefined;
728
+ pbxUserId?: string | undefined;
729
+ createdAt?: string | undefined;
730
+ updatedAt?: string | undefined;
731
+ type: ChatParticipantType;
732
+ role: ChatParticipantRole;
733
+ }
734
+ /**
735
+ * @public
736
+ */
737
+ export interface ChatParticipant {
738
+ id: string;
739
+ info: ChatParticipantInfo;
703
740
  }
704
741
  /**
705
742
  * @public
@@ -947,6 +984,7 @@ export type MessageSmsStatus = typeof MessageSmsStatus[keyof typeof MessageSmsSt
947
984
  * @enum
948
985
  */
949
986
  export declare const MessageType: {
987
+ readonly DELETED: "deleted";
950
988
  readonly REGULAR: "regular";
951
989
  readonly SYSTEM: "system";
952
990
  };
@@ -1952,11 +1990,15 @@ export interface CallUpdateConsumeEvent {
1952
1990
  */
1953
1991
  export interface ChatAnalyticsLiveCompleteEvent {
1954
1992
  /**
1955
- * Unique chat event id.
1993
+ * A unique chat channel identifier, distinguish each chat channel across different types.
1956
1994
  * @public
1957
1995
  */
1958
- id: string;
1959
- chatId?: string | undefined;
1996
+ id?: string | undefined;
1997
+ /**
1998
+ * A unique identifier that distinguishes each chat session within a channel.
1999
+ * @public
2000
+ */
2001
+ sessionId?: string | undefined;
1960
2002
  time: number;
1961
2003
  company: string;
1962
2004
  event: LiveEventType;
@@ -1966,11 +2008,15 @@ export interface ChatAnalyticsLiveCompleteEvent {
1966
2008
  */
1967
2009
  export interface ChatAnalyticsLiveInterruptedEvent {
1968
2010
  /**
1969
- * Unique chat event id.
2011
+ * A unique chat channel identifier, distinguish each chat channel across different types.
1970
2012
  * @public
1971
2013
  */
1972
- id: string;
1973
- chatId?: string | undefined;
2014
+ id?: string | undefined;
2015
+ /**
2016
+ * A unique identifier that distinguishes each chat session within a channel.
2017
+ * @public
2018
+ */
2019
+ sessionId?: string | undefined;
1974
2020
  time: number;
1975
2021
  company: string;
1976
2022
  event: LiveEventType;
@@ -1980,30 +2026,58 @@ export interface ChatAnalyticsLiveInterruptedEvent {
1980
2026
  */
1981
2027
  export interface ChatAnalyticsLiveProgressEvent {
1982
2028
  /**
1983
- * Unique chat event id.
2029
+ * A unique chat channel identifier, distinguish each chat channel across different types.
1984
2030
  * @public
1985
2031
  */
1986
- id: string;
1987
- chatId?: string | undefined;
2032
+ id?: string | undefined;
2033
+ /**
2034
+ * A unique identifier that distinguishes each chat session within a channel.
2035
+ * @public
2036
+ */
2037
+ sessionId?: string | undefined;
1988
2038
  time: number;
1989
2039
  company: string;
1990
2040
  event: LiveEventType;
1991
2041
  start: string;
1992
2042
  channel: Channel;
1993
- participants: ChatParticipants;
2043
+ participants: (ChatParticipantInfo)[];
1994
2044
  direction: ChatDirection;
1995
2045
  status: ChatStatus;
1996
2046
  }
2047
+ /**
2048
+ * @public
2049
+ */
2050
+ export interface ChatAnalyticsLiveTranscriptionEvent {
2051
+ /**
2052
+ * A unique chat channel identifier, distinguish each chat channel across different types.
2053
+ * @public
2054
+ */
2055
+ id?: string | undefined;
2056
+ /**
2057
+ * A unique identifier that distinguishes each chat session within a channel.
2058
+ * @public
2059
+ */
2060
+ sessionId?: string | undefined;
2061
+ time: number;
2062
+ company: string;
2063
+ event: LiveEventType;
2064
+ chatStartTime: number;
2065
+ message: string;
2066
+ }
1997
2067
  /**
1998
2068
  * @public
1999
2069
  */
2000
2070
  export interface ChatAnalyticsManagerMissedEvent {
2001
2071
  /**
2002
- * Unique chat event id.
2072
+ * A unique chat channel identifier, distinguish each chat channel across different types.
2003
2073
  * @public
2004
2074
  */
2005
- id: string;
2006
- chatId?: string | undefined;
2075
+ id?: string | undefined;
2076
+ /**
2077
+ * A unique identifier that distinguishes each chat session within a channel.
2078
+ * @public
2079
+ */
2080
+ sessionId?: string | undefined;
2007
2081
  time: number;
2008
2082
  company: string;
2009
2083
  event: string;
@@ -2013,11 +2087,15 @@ export interface ChatAnalyticsManagerMissedEvent {
2013
2087
  */
2014
2088
  export interface ChatAnalyticsRecordEvent {
2015
2089
  /**
2016
- * Unique chat event id.
2090
+ * A unique chat channel identifier, distinguish each chat channel across different types.
2017
2091
  * @public
2018
2092
  */
2019
- id: string;
2020
- chatId?: string | undefined;
2093
+ id?: string | undefined;
2094
+ /**
2095
+ * A unique identifier that distinguishes each chat session within a channel.
2096
+ * @public
2097
+ */
2098
+ sessionId?: string | undefined;
2021
2099
  time: number;
2022
2100
  company: string;
2023
2101
  pbx?: string | undefined;
@@ -2028,22 +2106,34 @@ export interface ChatAnalyticsRecordEvent {
2028
2106
  direction: ChatDirection;
2029
2107
  channel: Channel;
2030
2108
  status?: ChatStatus | undefined;
2031
- participants: ChatParticipants;
2109
+ participants: (ChatParticipant)[];
2032
2110
  type: LiveEventType;
2033
2111
  }
2112
+ /**
2113
+ * @public
2114
+ */
2115
+ export interface ChatTranscription {
2116
+ start: number;
2117
+ end: number;
2118
+ messages: Record<string, string>;
2119
+ }
2034
2120
  /**
2035
2121
  * @public
2036
2122
  */
2037
2123
  export interface ChatAnalyticsTranscriptionRecordEvent {
2038
2124
  /**
2039
- * Unique chat event id.
2125
+ * A unique chat channel identifier, distinguish each chat channel across different types.
2040
2126
  * @public
2041
2127
  */
2042
- id: string;
2043
- chatId?: string | undefined;
2128
+ id?: string | undefined;
2129
+ /**
2130
+ * A unique identifier that distinguishes each chat session within a channel.
2131
+ * @public
2132
+ */
2133
+ sessionId?: string | undefined;
2044
2134
  time: number;
2045
2135
  company: string;
2046
- messages: (Message)[];
2136
+ transcription: ChatTranscription;
2047
2137
  type: LiveEventType;
2048
2138
  }
2049
2139
  /**
@@ -2084,6 +2174,7 @@ export declare const ChatEventType: {
2084
2174
  readonly LIVE_COMPLETE_EVENT: "ChatAnalyticsLiveCompleteEvent";
2085
2175
  readonly LIVE_INTERRUPTED_EVENT: "ChatAnalyticsLiveInterruptedEvent";
2086
2176
  readonly LIVE_PROGRESS_EVENT: "ChatAnalyticsLiveProgressEvent";
2177
+ readonly LIVE_TRANSCRIPTION_EVENT: "ChatAnalyticsLiveTranscriptionEvent";
2087
2178
  readonly MANAGER_MISSED_EVENT: "ChatAnalyticsManagerMissedEvent";
2088
2179
  readonly RECORD_EVENT: "ChatAnalyticsRecordEvent";
2089
2180
  readonly TRANSCRIPTION_RECORD_EVENT: "ChatAnalyticsTranscriptionRecordEvent";
@@ -2092,13 +2183,33 @@ export declare const ChatEventType: {
2092
2183
  * @public
2093
2184
  */
2094
2185
  export type ChatEventType = typeof ChatEventType[keyof typeof ChatEventType];
2186
+ /**
2187
+ * @public
2188
+ */
2189
+ export interface ChatParticipants {
2190
+ /**
2191
+ * A list of Agents available in the Chat, up to 8 items, sorted by name.
2192
+ * @public
2193
+ */
2194
+ agents?: (User)[] | undefined;
2195
+ agentsCount: number;
2196
+ /**
2197
+ * A list of Customers available in the Chat, up to 8 items, sorted by name.
2198
+ * @public
2199
+ */
2200
+ customers?: (User)[] | undefined;
2201
+ customersCount: number;
2202
+ }
2095
2203
  /**
2096
2204
  * @public
2097
2205
  */
2098
2206
  export interface ChatMessageConsumeEventData {
2207
+ subject: string;
2099
2208
  channel: Channel;
2100
2209
  message: Message;
2101
2210
  participants: ChatParticipants;
2211
+ service?: string | undefined;
2212
+ serviceTitle?: string | undefined;
2102
2213
  }
2103
2214
  /**
2104
2215
  * @public
@@ -4717,6 +4828,7 @@ export interface DescribeEventOutput {
4717
4828
  ChatAnalyticsLiveCompleteEvent?: ChatAnalyticsLiveCompleteEvent | undefined;
4718
4829
  ChatAnalyticsLiveInterruptedEvent?: ChatAnalyticsLiveInterruptedEvent | undefined;
4719
4830
  ChatAnalyticsLiveProgressEvent?: ChatAnalyticsLiveProgressEvent | undefined;
4831
+ ChatAnalyticsLiveTranscriptionEvent?: ChatAnalyticsLiveTranscriptionEvent | undefined;
4720
4832
  ChatAnalyticsManagerMissedEvent?: ChatAnalyticsManagerMissedEvent | undefined;
4721
4833
  ChatAnalyticsRecordEvent?: ChatAnalyticsRecordEvent | undefined;
4722
4834
  ChatAnalyticsTranscriptionRecordEvent?: ChatAnalyticsTranscriptionRecordEvent | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wda-stream-client",
3
3
  "description": "@wildix/wda-stream-client client",
4
- "version": "1.1.4",
4
+ "version": "1.1.6",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",