@wildix/wda-history-client 1.2.1 → 1.2.8
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.
- package/dist-cjs/WdaHistory.js +6 -0
- package/dist-cjs/commands/GetChatCommand.js +21 -0
- package/dist-cjs/commands/GetChatTranscriptionCommand.js +21 -0
- package/dist-cjs/commands/GetChatTranscriptionTextCommand.js +21 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +125 -1
- package/dist-cjs/protocols/Aws_restJson1.js +128 -1
- package/dist-es/WdaHistory.js +6 -0
- package/dist-es/commands/GetChatCommand.js +17 -0
- package/dist-es/commands/GetChatTranscriptionCommand.js +17 -0
- package/dist-es/commands/GetChatTranscriptionTextCommand.js +17 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +122 -0
- package/dist-es/protocols/Aws_restJson1.js +122 -1
- package/dist-types/WdaHistory.d.ts +21 -0
- package/dist-types/WdaHistoryClient.d.ts +5 -2
- package/dist-types/commands/GetCallCommand.d.ts +1 -1
- package/dist-types/commands/GetCallTranscriptionCommand.d.ts +1 -1
- package/dist-types/commands/GetChatCommand.d.ts +198 -0
- package/dist-types/commands/GetChatTranscriptionCommand.d.ts +255 -0
- package/dist-types/commands/GetChatTranscriptionTextCommand.d.ts +250 -0
- package/dist-types/commands/GetConferenceCommand.d.ts +1 -1
- package/dist-types/commands/GetConferenceTranscriptionCommand.d.ts +1 -1
- package/dist-types/commands/QueryConversationsCommand.d.ts +2 -2
- package/dist-types/commands/QueryUserCallsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateCallCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +682 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/package.json +1 -1
|
@@ -48,6 +48,20 @@ export declare class ForbiddenException extends __BaseException {
|
|
|
48
48
|
*/
|
|
49
49
|
constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
export interface TemplateParameter {
|
|
55
|
+
name: string;
|
|
56
|
+
value: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
export interface TemplateWithParameters {
|
|
62
|
+
name: string;
|
|
63
|
+
parameters: (TemplateParameter)[];
|
|
64
|
+
}
|
|
51
65
|
/**
|
|
52
66
|
* @public
|
|
53
67
|
*/
|
|
@@ -308,6 +322,8 @@ export type CallFlowTranscriptionStatus = typeof CallFlowTranscriptionStatus[key
|
|
|
308
322
|
export declare const RecordType: {
|
|
309
323
|
readonly CALL: "call";
|
|
310
324
|
readonly CALL_TRANSCRIPTION: "call_transcription";
|
|
325
|
+
readonly CHAT: "chat";
|
|
326
|
+
readonly CHAT_TRANSCRIPTION: "chat_transcription";
|
|
311
327
|
readonly CONFERENCE: "conference";
|
|
312
328
|
readonly CONFERENCE_TRANSCRIPTION: "conference_transcription";
|
|
313
329
|
};
|
|
@@ -549,6 +565,619 @@ export interface CallTranscriptionRecord {
|
|
|
549
565
|
callStartTime: number;
|
|
550
566
|
chunks: (CallTranscriptionChunk)[];
|
|
551
567
|
}
|
|
568
|
+
/**
|
|
569
|
+
* @public
|
|
570
|
+
*/
|
|
571
|
+
export declare class ChatNotFoundException extends __BaseException {
|
|
572
|
+
readonly name: "ChatNotFoundException";
|
|
573
|
+
readonly $fault: "client";
|
|
574
|
+
/**
|
|
575
|
+
* @internal
|
|
576
|
+
*/
|
|
577
|
+
constructor(opts: __ExceptionOptionType<ChatNotFoundException, __BaseException>);
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* @public
|
|
581
|
+
* @enum
|
|
582
|
+
*/
|
|
583
|
+
export declare const ChannelAccess: {
|
|
584
|
+
readonly PRIVATE: "private";
|
|
585
|
+
readonly PUBLIC: "public";
|
|
586
|
+
};
|
|
587
|
+
/**
|
|
588
|
+
* @public
|
|
589
|
+
*/
|
|
590
|
+
export type ChannelAccess = typeof ChannelAccess[keyof typeof ChannelAccess];
|
|
591
|
+
/**
|
|
592
|
+
* @public
|
|
593
|
+
*/
|
|
594
|
+
export interface User {
|
|
595
|
+
id: string;
|
|
596
|
+
name?: string | undefined;
|
|
597
|
+
email?: string | undefined;
|
|
598
|
+
phone?: string | undefined;
|
|
599
|
+
picture?: string | undefined;
|
|
600
|
+
locale?: string | undefined;
|
|
601
|
+
timeZone?: string | undefined;
|
|
602
|
+
company?: string | undefined;
|
|
603
|
+
bot?: boolean | undefined;
|
|
604
|
+
pbxDomain?: string | undefined;
|
|
605
|
+
pbxPort?: string | undefined;
|
|
606
|
+
pbxExtension?: string | undefined;
|
|
607
|
+
pbxSerial?: string | undefined;
|
|
608
|
+
pbxUserId?: string | undefined;
|
|
609
|
+
pbxGroupId?: string | undefined;
|
|
610
|
+
createdAt?: string | undefined;
|
|
611
|
+
updatedAt?: string | undefined;
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* @public
|
|
615
|
+
* @enum
|
|
616
|
+
*/
|
|
617
|
+
export declare const ChannelType: {
|
|
618
|
+
readonly DIRECT: "direct";
|
|
619
|
+
readonly GROUP: "group";
|
|
620
|
+
};
|
|
621
|
+
/**
|
|
622
|
+
* @public
|
|
623
|
+
*/
|
|
624
|
+
export type ChannelType = typeof ChannelType[keyof typeof ChannelType];
|
|
625
|
+
/**
|
|
626
|
+
* @public
|
|
627
|
+
* @enum
|
|
628
|
+
*/
|
|
629
|
+
export declare const ChannelContextEventAttendeeStatus: {
|
|
630
|
+
readonly ACCEPTED: "accepted";
|
|
631
|
+
readonly DECLINED: "declined";
|
|
632
|
+
readonly NONE: "none";
|
|
633
|
+
readonly TENTATIVE: "tentative";
|
|
634
|
+
};
|
|
635
|
+
/**
|
|
636
|
+
* @public
|
|
637
|
+
*/
|
|
638
|
+
export type ChannelContextEventAttendeeStatus = typeof ChannelContextEventAttendeeStatus[keyof typeof ChannelContextEventAttendeeStatus];
|
|
639
|
+
/**
|
|
640
|
+
* @public
|
|
641
|
+
*/
|
|
642
|
+
export interface ChannelContextEventAttendee {
|
|
643
|
+
email: string;
|
|
644
|
+
name?: string | undefined;
|
|
645
|
+
status: ChannelContextEventAttendeeStatus;
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* @public
|
|
649
|
+
*/
|
|
650
|
+
export interface ChannelContextEvent {
|
|
651
|
+
id?: string | undefined;
|
|
652
|
+
owner?: string | undefined;
|
|
653
|
+
start?: string | undefined;
|
|
654
|
+
end?: string | undefined;
|
|
655
|
+
summary?: string | undefined;
|
|
656
|
+
attendees?: (ChannelContextEventAttendee)[] | undefined;
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* @public
|
|
660
|
+
*/
|
|
661
|
+
export interface ChannelContextPushToTalk {
|
|
662
|
+
/**
|
|
663
|
+
* A unique identifier of x-hoppers broadcast conference. If present x-hoppers application will use broadcast and push-to-talk functionality for the channel.
|
|
664
|
+
* @public
|
|
665
|
+
*/
|
|
666
|
+
broadcastId?: string | undefined;
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* @public
|
|
670
|
+
* @enum
|
|
671
|
+
*/
|
|
672
|
+
export declare const ChannelContextSource: {
|
|
673
|
+
readonly KITE: "kite";
|
|
674
|
+
};
|
|
675
|
+
/**
|
|
676
|
+
* @public
|
|
677
|
+
*/
|
|
678
|
+
export type ChannelContextSource = typeof ChannelContextSource[keyof typeof ChannelContextSource];
|
|
679
|
+
/**
|
|
680
|
+
* @public
|
|
681
|
+
*/
|
|
682
|
+
export interface ChannelContext {
|
|
683
|
+
source?: ChannelContextSource | undefined;
|
|
684
|
+
target?: string | undefined;
|
|
685
|
+
events?: (ChannelContextEvent)[] | undefined;
|
|
686
|
+
ptt?: ChannelContextPushToTalk | undefined;
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* @public
|
|
690
|
+
* @enum
|
|
691
|
+
*/
|
|
692
|
+
export declare const ChannelWhatsAppStatus: {
|
|
693
|
+
readonly CHANNEL_CLOSED: "24h_channel_closed";
|
|
694
|
+
};
|
|
695
|
+
/**
|
|
696
|
+
* @public
|
|
697
|
+
*/
|
|
698
|
+
export type ChannelWhatsAppStatus = typeof ChannelWhatsAppStatus[keyof typeof ChannelWhatsAppStatus];
|
|
699
|
+
/**
|
|
700
|
+
* @public
|
|
701
|
+
*/
|
|
702
|
+
export interface Channel {
|
|
703
|
+
subject?: string | undefined;
|
|
704
|
+
description?: string | undefined;
|
|
705
|
+
/**
|
|
706
|
+
* Picture URL
|
|
707
|
+
* @public
|
|
708
|
+
*/
|
|
709
|
+
picture?: string | undefined;
|
|
710
|
+
/**
|
|
711
|
+
* Picture dominant color represented by a hex value.
|
|
712
|
+
* @public
|
|
713
|
+
*/
|
|
714
|
+
pictureColor?: string | undefined;
|
|
715
|
+
access?: ChannelAccess | undefined;
|
|
716
|
+
company?: string | undefined;
|
|
717
|
+
context?: ChannelContext | undefined;
|
|
718
|
+
kite?: boolean | undefined;
|
|
719
|
+
kiteTarget?: string | undefined;
|
|
720
|
+
kiteVariant?: string | undefined;
|
|
721
|
+
kiteAssign?: string | undefined;
|
|
722
|
+
kiteServiceName?: string | undefined;
|
|
723
|
+
kiteDefaultSubject?: string | undefined;
|
|
724
|
+
service?: string | undefined;
|
|
725
|
+
serviceTitle?: string | undefined;
|
|
726
|
+
serviceRecipient?: string | undefined;
|
|
727
|
+
assignee?: User | undefined;
|
|
728
|
+
telephony?: boolean | undefined;
|
|
729
|
+
sms?: boolean | undefined;
|
|
730
|
+
mms?: boolean | undefined;
|
|
731
|
+
whatsapp?: boolean | undefined;
|
|
732
|
+
whatsappStatus?: ChannelWhatsAppStatus | undefined;
|
|
733
|
+
broadcast?: boolean | undefined;
|
|
734
|
+
external?: boolean | undefined;
|
|
735
|
+
autoRecord?: boolean | undefined;
|
|
736
|
+
transcriptionLanguage?: string | undefined;
|
|
737
|
+
channelId: string;
|
|
738
|
+
channelType: ChannelType;
|
|
739
|
+
memberCount: number;
|
|
740
|
+
createdAt: string;
|
|
741
|
+
createdBy: string;
|
|
742
|
+
updatedAt?: string | undefined;
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* @public
|
|
746
|
+
* @enum
|
|
747
|
+
*/
|
|
748
|
+
export declare const ChatDirection: {
|
|
749
|
+
readonly INBOUND: "INBOUND";
|
|
750
|
+
readonly INTERNAL: "INTERNAL";
|
|
751
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
752
|
+
};
|
|
753
|
+
/**
|
|
754
|
+
* @public
|
|
755
|
+
*/
|
|
756
|
+
export type ChatDirection = typeof ChatDirection[keyof typeof ChatDirection];
|
|
757
|
+
/**
|
|
758
|
+
* @public
|
|
759
|
+
* @enum
|
|
760
|
+
*/
|
|
761
|
+
export declare const ChatParticipantRole: {
|
|
762
|
+
readonly AGENT: "AGENT";
|
|
763
|
+
readonly CLIENT: "CLIENT";
|
|
764
|
+
};
|
|
765
|
+
/**
|
|
766
|
+
* @public
|
|
767
|
+
*/
|
|
768
|
+
export type ChatParticipantRole = typeof ChatParticipantRole[keyof typeof ChatParticipantRole];
|
|
769
|
+
/**
|
|
770
|
+
* @public
|
|
771
|
+
* @enum
|
|
772
|
+
*/
|
|
773
|
+
export declare const ChatParticipantType: {
|
|
774
|
+
readonly LOCAL: "LOCAL";
|
|
775
|
+
readonly REMOTE: "REMOTE";
|
|
776
|
+
};
|
|
777
|
+
/**
|
|
778
|
+
* @public
|
|
779
|
+
*/
|
|
780
|
+
export type ChatParticipantType = typeof ChatParticipantType[keyof typeof ChatParticipantType];
|
|
781
|
+
/**
|
|
782
|
+
* @public
|
|
783
|
+
*/
|
|
784
|
+
export interface ChatParticipantInfo {
|
|
785
|
+
id: string;
|
|
786
|
+
name?: string | undefined;
|
|
787
|
+
email?: string | undefined;
|
|
788
|
+
phone?: string | undefined;
|
|
789
|
+
picture?: string | undefined;
|
|
790
|
+
locale?: string | undefined;
|
|
791
|
+
timeZone?: string | undefined;
|
|
792
|
+
company?: string | undefined;
|
|
793
|
+
bot?: boolean | undefined;
|
|
794
|
+
pbxDomain?: string | undefined;
|
|
795
|
+
pbxPort?: string | undefined;
|
|
796
|
+
pbxExtension?: string | undefined;
|
|
797
|
+
pbxSerial?: string | undefined;
|
|
798
|
+
pbxUserId?: string | undefined;
|
|
799
|
+
pbxGroupId?: string | undefined;
|
|
800
|
+
createdAt?: string | undefined;
|
|
801
|
+
updatedAt?: string | undefined;
|
|
802
|
+
type: ChatParticipantType;
|
|
803
|
+
role: ChatParticipantRole;
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* @public
|
|
807
|
+
*/
|
|
808
|
+
export interface ChatParticipant {
|
|
809
|
+
id: string;
|
|
810
|
+
info: ChatParticipantInfo;
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* @public
|
|
814
|
+
* @enum
|
|
815
|
+
*/
|
|
816
|
+
export declare const ChatStatus: {
|
|
817
|
+
readonly COMPLETED: "COMPLETED";
|
|
818
|
+
readonly MISSED: "MISSED";
|
|
819
|
+
readonly WAITFIRSTREPLY: "WAITFIRSTREPLY";
|
|
820
|
+
readonly WAITREPLYFROMAGENT: "WAITREPLYFROMAGENT";
|
|
821
|
+
readonly WAITREPLYFROMGUEST: "WAITREPLYFROMGUEST";
|
|
822
|
+
};
|
|
823
|
+
/**
|
|
824
|
+
* @public
|
|
825
|
+
*/
|
|
826
|
+
export type ChatStatus = typeof ChatStatus[keyof typeof ChatStatus];
|
|
827
|
+
/**
|
|
828
|
+
* @public
|
|
829
|
+
* @enum
|
|
830
|
+
*/
|
|
831
|
+
export declare const ChatTag: {
|
|
832
|
+
readonly SMS: "sms";
|
|
833
|
+
readonly TELEPHONY: "telephony";
|
|
834
|
+
readonly WHATSAPP: "whatsapp";
|
|
835
|
+
};
|
|
836
|
+
/**
|
|
837
|
+
* @public
|
|
838
|
+
*/
|
|
839
|
+
export type ChatTag = typeof ChatTag[keyof typeof ChatTag];
|
|
840
|
+
/**
|
|
841
|
+
* @public
|
|
842
|
+
*/
|
|
843
|
+
export interface ChatRecord {
|
|
844
|
+
/**
|
|
845
|
+
* A unique chat channel identifier, distinguish each chat channel across different types.
|
|
846
|
+
* @public
|
|
847
|
+
*/
|
|
848
|
+
id?: string | undefined;
|
|
849
|
+
/**
|
|
850
|
+
* A unique identifier that distinguishes each chat session within a channel.
|
|
851
|
+
* @public
|
|
852
|
+
*/
|
|
853
|
+
chatId?: string | undefined;
|
|
854
|
+
time: number;
|
|
855
|
+
company: string;
|
|
856
|
+
pbx?: string | undefined;
|
|
857
|
+
startTime?: number | undefined;
|
|
858
|
+
endTime?: number | undefined;
|
|
859
|
+
waitTime?: number | undefined;
|
|
860
|
+
duration?: number | undefined;
|
|
861
|
+
direction?: ChatDirection | undefined;
|
|
862
|
+
subject?: string | undefined;
|
|
863
|
+
service?: string | undefined;
|
|
864
|
+
serviceTitle?: string | undefined;
|
|
865
|
+
tags?: (ChatTag)[] | undefined;
|
|
866
|
+
channel?: Channel | undefined;
|
|
867
|
+
status?: ChatStatus | undefined;
|
|
868
|
+
participants?: (ChatParticipant)[] | undefined;
|
|
869
|
+
type: RecordType;
|
|
870
|
+
}
|
|
871
|
+
/**
|
|
872
|
+
* @public
|
|
873
|
+
*/
|
|
874
|
+
export declare class ChatTranscriptionNotFoundException extends __BaseException {
|
|
875
|
+
readonly name: "ChatTranscriptionNotFoundException";
|
|
876
|
+
readonly $fault: "client";
|
|
877
|
+
/**
|
|
878
|
+
* @internal
|
|
879
|
+
*/
|
|
880
|
+
constructor(opts: __ExceptionOptionType<ChatTranscriptionNotFoundException, __BaseException>);
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
* @public
|
|
884
|
+
*/
|
|
885
|
+
export interface MessageAttachment {
|
|
886
|
+
id: string;
|
|
887
|
+
/**
|
|
888
|
+
* This *is* documentation about the field. Describe here what fsId and how to get it.
|
|
889
|
+
* @public
|
|
890
|
+
*/
|
|
891
|
+
fsId: string;
|
|
892
|
+
mime?: string | undefined;
|
|
893
|
+
name: string;
|
|
894
|
+
size: number;
|
|
895
|
+
width?: number | undefined;
|
|
896
|
+
height?: number | undefined;
|
|
897
|
+
thumbnail?: string | undefined;
|
|
898
|
+
}
|
|
899
|
+
/**
|
|
900
|
+
* @public
|
|
901
|
+
*/
|
|
902
|
+
export interface ButtonActionHandler {
|
|
903
|
+
/**
|
|
904
|
+
* A unique ID of the action within the message.
|
|
905
|
+
* @public
|
|
906
|
+
*/
|
|
907
|
+
id: string;
|
|
908
|
+
}
|
|
909
|
+
/**
|
|
910
|
+
* @public
|
|
911
|
+
*/
|
|
912
|
+
export interface ButtonLinkHandler {
|
|
913
|
+
url: string;
|
|
914
|
+
}
|
|
915
|
+
/**
|
|
916
|
+
* @public
|
|
917
|
+
*/
|
|
918
|
+
export interface ButtonReplyHandler {
|
|
919
|
+
text?: string | undefined;
|
|
920
|
+
}
|
|
921
|
+
/**
|
|
922
|
+
* @public
|
|
923
|
+
*/
|
|
924
|
+
export type ButtonHandler = ButtonHandler.ActionMember | ButtonHandler.LinkMember | ButtonHandler.ReplyMember | ButtonHandler.$UnknownMember;
|
|
925
|
+
/**
|
|
926
|
+
* @public
|
|
927
|
+
*/
|
|
928
|
+
export declare namespace ButtonHandler {
|
|
929
|
+
interface LinkMember {
|
|
930
|
+
link: ButtonLinkHandler;
|
|
931
|
+
reply?: never;
|
|
932
|
+
action?: never;
|
|
933
|
+
$unknown?: never;
|
|
934
|
+
}
|
|
935
|
+
interface ReplyMember {
|
|
936
|
+
link?: never;
|
|
937
|
+
reply: ButtonReplyHandler;
|
|
938
|
+
action?: never;
|
|
939
|
+
$unknown?: never;
|
|
940
|
+
}
|
|
941
|
+
interface ActionMember {
|
|
942
|
+
link?: never;
|
|
943
|
+
reply?: never;
|
|
944
|
+
action: ButtonActionHandler;
|
|
945
|
+
$unknown?: never;
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* @public
|
|
949
|
+
*/
|
|
950
|
+
interface $UnknownMember {
|
|
951
|
+
link?: never;
|
|
952
|
+
reply?: never;
|
|
953
|
+
action?: never;
|
|
954
|
+
$unknown: [string, any];
|
|
955
|
+
}
|
|
956
|
+
interface Visitor<T> {
|
|
957
|
+
link: (value: ButtonLinkHandler) => T;
|
|
958
|
+
reply: (value: ButtonReplyHandler) => T;
|
|
959
|
+
action: (value: ButtonActionHandler) => T;
|
|
960
|
+
_: (name: string, value: any) => T;
|
|
961
|
+
}
|
|
962
|
+
const visit: <T>(value: ButtonHandler, visitor: Visitor<T>) => T;
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* @public
|
|
966
|
+
* @enum
|
|
967
|
+
*/
|
|
968
|
+
export declare const ButtonVariant: {
|
|
969
|
+
readonly CONTAINED: "contained";
|
|
970
|
+
readonly OUTLINED: "outlined";
|
|
971
|
+
};
|
|
972
|
+
/**
|
|
973
|
+
* @public
|
|
974
|
+
*/
|
|
975
|
+
export type ButtonVariant = typeof ButtonVariant[keyof typeof ButtonVariant];
|
|
976
|
+
/**
|
|
977
|
+
* @public
|
|
978
|
+
*/
|
|
979
|
+
export interface ButtonElement {
|
|
980
|
+
text: string;
|
|
981
|
+
handler: ButtonHandler;
|
|
982
|
+
variant?: ButtonVariant | undefined;
|
|
983
|
+
disabled?: boolean | undefined;
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* @public
|
|
987
|
+
*/
|
|
988
|
+
export type ActionElement = ActionElement.ButtonMember | ActionElement.$UnknownMember;
|
|
989
|
+
/**
|
|
990
|
+
* @public
|
|
991
|
+
*/
|
|
992
|
+
export declare namespace ActionElement {
|
|
993
|
+
interface ButtonMember {
|
|
994
|
+
button: ButtonElement;
|
|
995
|
+
$unknown?: never;
|
|
996
|
+
}
|
|
997
|
+
/**
|
|
998
|
+
* @public
|
|
999
|
+
*/
|
|
1000
|
+
interface $UnknownMember {
|
|
1001
|
+
button?: never;
|
|
1002
|
+
$unknown: [string, any];
|
|
1003
|
+
}
|
|
1004
|
+
interface Visitor<T> {
|
|
1005
|
+
button: (value: ButtonElement) => T;
|
|
1006
|
+
_: (name: string, value: any) => T;
|
|
1007
|
+
}
|
|
1008
|
+
const visit: <T>(value: ActionElement, visitor: Visitor<T>) => T;
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* @public
|
|
1012
|
+
*/
|
|
1013
|
+
export interface MessageTemplateConfig {
|
|
1014
|
+
whatsapp?: TemplateWithParameters | undefined;
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* @public
|
|
1018
|
+
*/
|
|
1019
|
+
export type Element = Element.ActionsMember | Element.TemplateMember | Element.$UnknownMember;
|
|
1020
|
+
/**
|
|
1021
|
+
* @public
|
|
1022
|
+
*/
|
|
1023
|
+
export declare namespace Element {
|
|
1024
|
+
interface TemplateMember {
|
|
1025
|
+
template: MessageTemplateConfig;
|
|
1026
|
+
actions?: never;
|
|
1027
|
+
$unknown?: never;
|
|
1028
|
+
}
|
|
1029
|
+
interface ActionsMember {
|
|
1030
|
+
template?: never;
|
|
1031
|
+
actions: (ActionElement)[];
|
|
1032
|
+
$unknown?: never;
|
|
1033
|
+
}
|
|
1034
|
+
/**
|
|
1035
|
+
* @public
|
|
1036
|
+
*/
|
|
1037
|
+
interface $UnknownMember {
|
|
1038
|
+
template?: never;
|
|
1039
|
+
actions?: never;
|
|
1040
|
+
$unknown: [string, any];
|
|
1041
|
+
}
|
|
1042
|
+
interface Visitor<T> {
|
|
1043
|
+
template: (value: MessageTemplateConfig) => T;
|
|
1044
|
+
actions: (value: (ActionElement)[]) => T;
|
|
1045
|
+
_: (name: string, value: any) => T;
|
|
1046
|
+
}
|
|
1047
|
+
const visit: <T>(value: Element, visitor: Visitor<T>) => T;
|
|
1048
|
+
}
|
|
1049
|
+
/**
|
|
1050
|
+
* @public
|
|
1051
|
+
*/
|
|
1052
|
+
export interface MessageForward {
|
|
1053
|
+
forwardCompany?: string | undefined;
|
|
1054
|
+
forwardDate: string;
|
|
1055
|
+
forwardEmail?: string | undefined;
|
|
1056
|
+
forwardName?: string | undefined;
|
|
1057
|
+
messageId: string;
|
|
1058
|
+
channelId: string;
|
|
1059
|
+
}
|
|
1060
|
+
/**
|
|
1061
|
+
* @public
|
|
1062
|
+
*/
|
|
1063
|
+
export interface MessageGiphy {
|
|
1064
|
+
id: string;
|
|
1065
|
+
size: string;
|
|
1066
|
+
url: string;
|
|
1067
|
+
height: string;
|
|
1068
|
+
width: string;
|
|
1069
|
+
}
|
|
1070
|
+
/**
|
|
1071
|
+
* @public
|
|
1072
|
+
*/
|
|
1073
|
+
export interface Reaction {
|
|
1074
|
+
type?: string | undefined;
|
|
1075
|
+
userId?: string | undefined;
|
|
1076
|
+
messageId?: string | undefined;
|
|
1077
|
+
user?: User | undefined;
|
|
1078
|
+
}
|
|
1079
|
+
/**
|
|
1080
|
+
* @public
|
|
1081
|
+
*/
|
|
1082
|
+
export interface MessageQuote {
|
|
1083
|
+
messageId: string;
|
|
1084
|
+
channelId: string;
|
|
1085
|
+
user: User;
|
|
1086
|
+
text?: string | undefined;
|
|
1087
|
+
attachments?: (MessageAttachment)[] | undefined;
|
|
1088
|
+
forward?: MessageForward | undefined;
|
|
1089
|
+
mentions?: (User)[] | undefined;
|
|
1090
|
+
giphy?: MessageGiphy | undefined;
|
|
1091
|
+
createdAt: string;
|
|
1092
|
+
updatedAt?: string | undefined;
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* @public
|
|
1096
|
+
* @enum
|
|
1097
|
+
*/
|
|
1098
|
+
export declare const MessageSmsStatus: {
|
|
1099
|
+
readonly DELIVERED: "delivered";
|
|
1100
|
+
readonly ERROR: "error";
|
|
1101
|
+
readonly SENT: "sent";
|
|
1102
|
+
readonly TRYING: "trying";
|
|
1103
|
+
};
|
|
1104
|
+
/**
|
|
1105
|
+
* @public
|
|
1106
|
+
*/
|
|
1107
|
+
export type MessageSmsStatus = typeof MessageSmsStatus[keyof typeof MessageSmsStatus];
|
|
1108
|
+
/**
|
|
1109
|
+
* @public
|
|
1110
|
+
* @enum
|
|
1111
|
+
*/
|
|
1112
|
+
export declare const MessageType: {
|
|
1113
|
+
readonly DELETED: "deleted";
|
|
1114
|
+
readonly REGULAR: "regular";
|
|
1115
|
+
readonly SYSTEM: "system";
|
|
1116
|
+
};
|
|
1117
|
+
/**
|
|
1118
|
+
* @public
|
|
1119
|
+
*/
|
|
1120
|
+
export type MessageType = typeof MessageType[keyof typeof MessageType];
|
|
1121
|
+
/**
|
|
1122
|
+
* @public
|
|
1123
|
+
* @enum
|
|
1124
|
+
*/
|
|
1125
|
+
export declare const MessageWhatsAppStatus: {
|
|
1126
|
+
readonly DELIVERED: "delivered";
|
|
1127
|
+
readonly ERROR: "error";
|
|
1128
|
+
readonly SENT: "sent";
|
|
1129
|
+
readonly TRYING: "trying";
|
|
1130
|
+
};
|
|
1131
|
+
/**
|
|
1132
|
+
* @public
|
|
1133
|
+
*/
|
|
1134
|
+
export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof MessageWhatsAppStatus];
|
|
1135
|
+
/**
|
|
1136
|
+
* @public
|
|
1137
|
+
*/
|
|
1138
|
+
export interface Message {
|
|
1139
|
+
text?: string | undefined;
|
|
1140
|
+
elements?: (Element)[] | undefined;
|
|
1141
|
+
attachments?: (MessageAttachment)[] | undefined;
|
|
1142
|
+
quote?: MessageQuote | undefined;
|
|
1143
|
+
forward?: MessageForward | undefined;
|
|
1144
|
+
whatsapp?: boolean | undefined;
|
|
1145
|
+
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
1146
|
+
sms?: boolean | undefined;
|
|
1147
|
+
smsStatus?: MessageSmsStatus | undefined;
|
|
1148
|
+
type: MessageType;
|
|
1149
|
+
giphy?: MessageGiphy | undefined;
|
|
1150
|
+
silent?: boolean | undefined;
|
|
1151
|
+
event?: string | undefined;
|
|
1152
|
+
messageId: string;
|
|
1153
|
+
channelId: string;
|
|
1154
|
+
user: User;
|
|
1155
|
+
edit?: boolean | undefined;
|
|
1156
|
+
mentions?: (User)[] | undefined;
|
|
1157
|
+
latestReactions?: (Reaction)[] | undefined;
|
|
1158
|
+
reactionCounts?: Record<string, number> | undefined;
|
|
1159
|
+
createdAt: string;
|
|
1160
|
+
updatedAt?: string | undefined;
|
|
1161
|
+
}
|
|
1162
|
+
/**
|
|
1163
|
+
* @public
|
|
1164
|
+
*/
|
|
1165
|
+
export interface ChatTranscriptionRecord {
|
|
1166
|
+
/**
|
|
1167
|
+
* A unique chat channel identifier, distinguish each chat channel across different types.
|
|
1168
|
+
* @public
|
|
1169
|
+
*/
|
|
1170
|
+
id?: string | undefined;
|
|
1171
|
+
/**
|
|
1172
|
+
* A unique identifier that distinguishes each chat session within a channel.
|
|
1173
|
+
* @public
|
|
1174
|
+
*/
|
|
1175
|
+
chatId?: string | undefined;
|
|
1176
|
+
time: number;
|
|
1177
|
+
company: string;
|
|
1178
|
+
type: RecordType;
|
|
1179
|
+
messages: (Message)[];
|
|
1180
|
+
}
|
|
552
1181
|
/**
|
|
553
1182
|
* @public
|
|
554
1183
|
*/
|
|
@@ -905,6 +1534,59 @@ export interface GetCallTranscriptionTextOutput {
|
|
|
905
1534
|
text: string;
|
|
906
1535
|
chunks: (TranscriptionTextChunk)[];
|
|
907
1536
|
}
|
|
1537
|
+
/**
|
|
1538
|
+
* @public
|
|
1539
|
+
*/
|
|
1540
|
+
export interface GetChatInput {
|
|
1541
|
+
company?: string | undefined;
|
|
1542
|
+
/**
|
|
1543
|
+
* A unique identifier that distinguishes each chat session within a channel.
|
|
1544
|
+
* @public
|
|
1545
|
+
*/
|
|
1546
|
+
chatId: string;
|
|
1547
|
+
}
|
|
1548
|
+
/**
|
|
1549
|
+
* @public
|
|
1550
|
+
*/
|
|
1551
|
+
export interface GetChatOutput {
|
|
1552
|
+
chat: ChatRecord;
|
|
1553
|
+
}
|
|
1554
|
+
/**
|
|
1555
|
+
* @public
|
|
1556
|
+
*/
|
|
1557
|
+
export interface GetChatTranscriptionInput {
|
|
1558
|
+
company?: string | undefined;
|
|
1559
|
+
/**
|
|
1560
|
+
* A unique identifier that distinguishes each chat session within a channel.
|
|
1561
|
+
* @public
|
|
1562
|
+
*/
|
|
1563
|
+
chatId: string;
|
|
1564
|
+
}
|
|
1565
|
+
/**
|
|
1566
|
+
* @public
|
|
1567
|
+
*/
|
|
1568
|
+
export interface GetChatTranscriptionOutput {
|
|
1569
|
+
transcription: ChatTranscriptionRecord;
|
|
1570
|
+
}
|
|
1571
|
+
/**
|
|
1572
|
+
* @public
|
|
1573
|
+
*/
|
|
1574
|
+
export interface GetChatTranscriptionTextInput {
|
|
1575
|
+
company?: string | undefined;
|
|
1576
|
+
/**
|
|
1577
|
+
* A unique identifier that distinguishes each chat session within a channel.
|
|
1578
|
+
* @public
|
|
1579
|
+
*/
|
|
1580
|
+
chatId: string;
|
|
1581
|
+
}
|
|
1582
|
+
/**
|
|
1583
|
+
* @public
|
|
1584
|
+
*/
|
|
1585
|
+
export interface GetChatTranscriptionTextOutput {
|
|
1586
|
+
filename: string;
|
|
1587
|
+
text: string;
|
|
1588
|
+
messages: (Message)[];
|
|
1589
|
+
}
|
|
908
1590
|
/**
|
|
909
1591
|
* @public
|
|
910
1592
|
*/
|