@wildix/wda-stream-client 1.0.22 → 1.0.24

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.
@@ -209,7 +209,10 @@ declare const GetConversationsCommand_base: {
209
209
  * // email: "STRING_VALUE",
210
210
  * // phone: "STRING_VALUE",
211
211
  * // picture: "STRING_VALUE",
212
+ * // locale: "STRING_VALUE",
213
+ * // timeZone: "STRING_VALUE",
212
214
  * // company: "STRING_VALUE",
215
+ * // bot: true || false,
213
216
  * // pbxDomain: "STRING_VALUE",
214
217
  * // pbxPort: "STRING_VALUE",
215
218
  * // pbxExtension: "STRING_VALUE",
@@ -228,7 +231,10 @@ declare const GetConversationsCommand_base: {
228
231
  * // email: "STRING_VALUE",
229
232
  * // phone: "STRING_VALUE",
230
233
  * // picture: "STRING_VALUE",
234
+ * // locale: "STRING_VALUE",
235
+ * // timeZone: "STRING_VALUE",
231
236
  * // company: "STRING_VALUE",
237
+ * // bot: true || false,
232
238
  * // pbxDomain: "STRING_VALUE",
233
239
  * // pbxPort: "STRING_VALUE",
234
240
  * // pbxExtension: "STRING_VALUE",
@@ -246,7 +252,10 @@ declare const GetConversationsCommand_base: {
246
252
  * // email: "STRING_VALUE",
247
253
  * // phone: "STRING_VALUE",
248
254
  * // picture: "STRING_VALUE",
255
+ * // locale: "STRING_VALUE",
256
+ * // timeZone: "STRING_VALUE",
249
257
  * // company: "STRING_VALUE",
258
+ * // bot: true || false,
250
259
  * // pbxDomain: "STRING_VALUE",
251
260
  * // pbxPort: "STRING_VALUE",
252
261
  * // pbxExtension: "STRING_VALUE",
@@ -858,6 +858,7 @@ export interface CallRecordStopConsumeEventData {
858
858
  url: string;
859
859
  end: number;
860
860
  pauses: (CallRecordPause)[];
861
+ flowId: number;
861
862
  }
862
863
  /**
863
864
  * @public
@@ -1015,7 +1016,10 @@ export interface User {
1015
1016
  email?: string;
1016
1017
  phone?: string;
1017
1018
  picture?: string;
1019
+ locale?: string;
1020
+ timeZone?: string;
1018
1021
  company?: string;
1022
+ bot?: boolean;
1019
1023
  pbxDomain?: string;
1020
1024
  pbxPort?: string;
1021
1025
  pbxExtension?: string;
@@ -1082,7 +1086,10 @@ export interface ChatParticipant {
1082
1086
  email?: string;
1083
1087
  phone?: string;
1084
1088
  picture?: string;
1089
+ locale?: string;
1090
+ timeZone?: string;
1085
1091
  company?: string;
1092
+ bot?: boolean;
1086
1093
  pbxDomain?: string;
1087
1094
  pbxPort?: string;
1088
1095
  pbxExtension?: string;
@@ -2640,6 +2647,390 @@ export declare const PresenceEventType: {
2640
2647
  * @public
2641
2648
  */
2642
2649
  export type PresenceEventType = typeof PresenceEventType[keyof typeof PresenceEventType];
2650
+ /**
2651
+ * @public
2652
+ * @enum
2653
+ */
2654
+ export declare const WebhookEventType: {
2655
+ readonly CALL_COMPLETED: "call:completed";
2656
+ readonly CALL_LIVE_COMPLETED: "call:live:completed";
2657
+ readonly CALL_LIVE_INTERRUPTED: "call:live:interrupted";
2658
+ readonly CALL_LIVE_PROGRESS: "call:live:progress";
2659
+ readonly CALL_LIVE_TRANSCRIPTION: "call:live:transcription";
2660
+ readonly CHAT_COMPLETED: "chat:completed";
2661
+ readonly CHAT_LIVE_COMPLETED: "chat:live:completed";
2662
+ readonly CHAT_LIVE_INTERRUPTED: "chat:live:interrupted";
2663
+ readonly CHAT_LIVE_PROGRESS: "chat:live:progress";
2664
+ readonly CHAT_MANAGER_MISSED: "chat:manager:missed";
2665
+ readonly CONFERENCE_COMPLETED: "conference:completed";
2666
+ readonly CONFERENCE_LIVE_COMPLETED: "conference:live:completed";
2667
+ readonly CONFERENCE_LIVE_INTERRUPTED: "conference:live:interrupted";
2668
+ readonly CONFERENCE_LIVE_JOIN: "conference:live:join";
2669
+ readonly CONFERENCE_LIVE_LEAVE: "conference:live:leave";
2670
+ readonly CONFERENCE_LIVE_PROGRESS: "conference:live:progress";
2671
+ readonly CONFERENCE_LIVE_TRANSCRIPTION: "conference:live:transcription";
2672
+ readonly OLD_CALL_END: "call:end";
2673
+ readonly OLD_CALL_START: "call:start";
2674
+ readonly OLD_CALL_UPDATE: "call:update";
2675
+ readonly PRESENCE_CONFERENCE: "presence:conference";
2676
+ readonly PRESENCE_TELEPHONY: "presence:telephony";
2677
+ readonly PRESENCE_USER: "presence:user";
2678
+ };
2679
+ /**
2680
+ * @public
2681
+ */
2682
+ export type WebhookEventType = typeof WebhookEventType[keyof typeof WebhookEventType];
2683
+ /**
2684
+ * @public
2685
+ */
2686
+ export interface WebhookCallCompletedEvent {
2687
+ id: string;
2688
+ pbx?: string;
2689
+ company?: string;
2690
+ type: WebhookEventType;
2691
+ time: number;
2692
+ integrationId: string;
2693
+ data: CallAnalyticsRecordEvent;
2694
+ }
2695
+ /**
2696
+ * @public
2697
+ */
2698
+ export interface WebhookCallLiveCompletedEvent {
2699
+ id: string;
2700
+ pbx?: string;
2701
+ company?: string;
2702
+ type: WebhookEventType;
2703
+ time: number;
2704
+ integrationId: string;
2705
+ data: CallAnalyticsLiveCompleteEvent;
2706
+ }
2707
+ /**
2708
+ * @public
2709
+ */
2710
+ export interface WebhookCallLiveInterruptedEvent {
2711
+ id: string;
2712
+ pbx?: string;
2713
+ company?: string;
2714
+ type: WebhookEventType;
2715
+ time: number;
2716
+ integrationId: string;
2717
+ data: CallAnalyticsLiveInterruptedEvent;
2718
+ }
2719
+ /**
2720
+ * @public
2721
+ */
2722
+ export interface WebhookCallLiveProgressEvent {
2723
+ id: string;
2724
+ pbx?: string;
2725
+ company?: string;
2726
+ type: WebhookEventType;
2727
+ time: number;
2728
+ integrationId: string;
2729
+ data: CallAnalyticsLiveProgressEvent;
2730
+ }
2731
+ /**
2732
+ * @public
2733
+ */
2734
+ export interface WebhookCallLiveTranscriptionEvent {
2735
+ id: string;
2736
+ pbx?: string;
2737
+ company?: string;
2738
+ type: WebhookEventType;
2739
+ time: number;
2740
+ integrationId: string;
2741
+ data: CallAnalyticsLiveTranscriptionEvent;
2742
+ }
2743
+ /**
2744
+ * @public
2745
+ */
2746
+ export interface WebhookChatCompletedEvent {
2747
+ id: string;
2748
+ pbx?: string;
2749
+ company?: string;
2750
+ type: WebhookEventType;
2751
+ time: number;
2752
+ integrationId: string;
2753
+ data: ChatAnalyticsRecordEvent;
2754
+ }
2755
+ /**
2756
+ * @public
2757
+ */
2758
+ export interface WebhookChatLiveCompletedEvent {
2759
+ id: string;
2760
+ pbx?: string;
2761
+ company?: string;
2762
+ type: WebhookEventType;
2763
+ time: number;
2764
+ integrationId: string;
2765
+ data: ChatAnalyticsLiveCompleteEvent;
2766
+ }
2767
+ /**
2768
+ * @public
2769
+ */
2770
+ export interface WebhookChatLiveInterruptedEvent {
2771
+ id: string;
2772
+ pbx?: string;
2773
+ company?: string;
2774
+ type: WebhookEventType;
2775
+ time: number;
2776
+ integrationId: string;
2777
+ data: ChatAnalyticsLiveInterruptedEvent;
2778
+ }
2779
+ /**
2780
+ * @public
2781
+ */
2782
+ export interface WebhookChatLiveProgressEvent {
2783
+ id: string;
2784
+ pbx?: string;
2785
+ company?: string;
2786
+ type: WebhookEventType;
2787
+ time: number;
2788
+ integrationId: string;
2789
+ data: ChatAnalyticsLiveProgressEvent;
2790
+ }
2791
+ /**
2792
+ * @public
2793
+ */
2794
+ export interface WebhookChatManagerMissedEvent {
2795
+ id: string;
2796
+ pbx?: string;
2797
+ company?: string;
2798
+ type: WebhookEventType;
2799
+ time: number;
2800
+ integrationId: string;
2801
+ data: ChatAnalyticsManagerMissedEvent;
2802
+ }
2803
+ /**
2804
+ * @public
2805
+ */
2806
+ export interface WebhookConferenceCompletedEvent {
2807
+ id: string;
2808
+ pbx?: string;
2809
+ company?: string;
2810
+ type: WebhookEventType;
2811
+ time: number;
2812
+ integrationId: string;
2813
+ data: ConferenceAnalyticsRecordEvent;
2814
+ }
2815
+ /**
2816
+ * @public
2817
+ */
2818
+ export interface WebhookConferenceLiveCompletedEvent {
2819
+ id: string;
2820
+ pbx?: string;
2821
+ company?: string;
2822
+ type: WebhookEventType;
2823
+ time: number;
2824
+ integrationId: string;
2825
+ data: ConferenceAnalyticsLiveCompleteEvent;
2826
+ }
2827
+ /**
2828
+ * @public
2829
+ */
2830
+ export interface WebhookConferenceLiveInterruptedEvent {
2831
+ id: string;
2832
+ pbx?: string;
2833
+ company?: string;
2834
+ type: WebhookEventType;
2835
+ time: number;
2836
+ integrationId: string;
2837
+ data: ConferenceAnalyticsLiveInterruptedEvent;
2838
+ }
2839
+ /**
2840
+ * @public
2841
+ */
2842
+ export interface WebhookConferenceLiveJoinEvent {
2843
+ id: string;
2844
+ pbx?: string;
2845
+ company?: string;
2846
+ type: WebhookEventType;
2847
+ time: number;
2848
+ integrationId: string;
2849
+ data: ConferenceAnalyticsLiveJoinEvent;
2850
+ }
2851
+ /**
2852
+ * @public
2853
+ */
2854
+ export interface WebhookConferenceLiveLeaveEvent {
2855
+ id: string;
2856
+ pbx?: string;
2857
+ company?: string;
2858
+ type: WebhookEventType;
2859
+ time: number;
2860
+ integrationId: string;
2861
+ data: ConferenceAnalyticsLiveLeaveEvent;
2862
+ }
2863
+ /**
2864
+ * @public
2865
+ */
2866
+ export interface WebhookConferenceLiveProgressEvent {
2867
+ id: string;
2868
+ pbx?: string;
2869
+ company?: string;
2870
+ type: WebhookEventType;
2871
+ time: number;
2872
+ integrationId: string;
2873
+ data: ConferenceAnalyticsLiveProgressEvent;
2874
+ }
2875
+ /**
2876
+ * @public
2877
+ */
2878
+ export interface WebhookConferenceLiveTranscriptionEvent {
2879
+ id: string;
2880
+ pbx?: string;
2881
+ company?: string;
2882
+ type: WebhookEventType;
2883
+ time: number;
2884
+ integrationId: string;
2885
+ data: ConferenceAnalyticsLiveTranscriptionEvent;
2886
+ }
2887
+ /**
2888
+ * @public
2889
+ */
2890
+ export interface WebhookOutdatedCallParticipant {
2891
+ type: string;
2892
+ phone?: string;
2893
+ name?: string;
2894
+ company?: string;
2895
+ email?: string;
2896
+ userId?: string;
2897
+ userExtension?: string;
2898
+ userDepartment?: string;
2899
+ groupId?: string;
2900
+ groupName?: string;
2901
+ userAgent?: string;
2902
+ userDevice?: CallDevice;
2903
+ role: string;
2904
+ license?: string;
2905
+ }
2906
+ /**
2907
+ * @public
2908
+ */
2909
+ export interface WebhookOutdatedCallEventData {
2910
+ status?: string;
2911
+ caller?: WebhookOutdatedCallParticipant;
2912
+ callee?: WebhookOutdatedCallParticipant;
2913
+ service?: string;
2914
+ destination?: string;
2915
+ trunkName?: string;
2916
+ queueId?: string;
2917
+ queueName?: string;
2918
+ tags: (string)[];
2919
+ flags: (string)[];
2920
+ endCause?: string;
2921
+ endCauseStr?: string;
2922
+ endBy?: string;
2923
+ }
2924
+ /**
2925
+ * @public
2926
+ */
2927
+ export interface WebhookOutdatedCallEndEvent {
2928
+ id: string;
2929
+ pbx?: string;
2930
+ company?: string;
2931
+ type: WebhookEventType;
2932
+ time: number;
2933
+ integrationId: string;
2934
+ data: WebhookOutdatedCallEventData;
2935
+ }
2936
+ /**
2937
+ * @public
2938
+ */
2939
+ export interface WebhookOutdatedCallStartEvent {
2940
+ id: string;
2941
+ pbx?: string;
2942
+ company?: string;
2943
+ type: WebhookEventType;
2944
+ time: number;
2945
+ integrationId: string;
2946
+ data: WebhookOutdatedCallEventData;
2947
+ }
2948
+ /**
2949
+ * @public
2950
+ */
2951
+ export interface WebhookOutdatedCallUpdateEvent {
2952
+ id: string;
2953
+ pbx?: string;
2954
+ company?: string;
2955
+ type: WebhookEventType;
2956
+ time: number;
2957
+ integrationId: string;
2958
+ data: WebhookOutdatedCallEventData;
2959
+ }
2960
+ /**
2961
+ * @public
2962
+ */
2963
+ export interface WebhookPresenceConferenceEventData {
2964
+ extension: string;
2965
+ isJoined: boolean;
2966
+ isLeaved: boolean;
2967
+ participant: ConferenceParticipant;
2968
+ }
2969
+ /**
2970
+ * @public
2971
+ */
2972
+ export interface WebhookPresenceConferenceEvent {
2973
+ id: string;
2974
+ pbx?: string;
2975
+ company?: string;
2976
+ type: WebhookEventType;
2977
+ time: number;
2978
+ integrationId: string;
2979
+ data: WebhookPresenceConferenceEventData;
2980
+ }
2981
+ /**
2982
+ * @public
2983
+ */
2984
+ export interface WebhookPresenceTelephonyEventData {
2985
+ extension: string;
2986
+ email: string;
2987
+ sourceId: string;
2988
+ status: string;
2989
+ }
2990
+ /**
2991
+ * @public
2992
+ */
2993
+ export interface WebhookPresenceTelephonyEvent {
2994
+ id: string;
2995
+ pbx?: string;
2996
+ company?: string;
2997
+ type: WebhookEventType;
2998
+ time: number;
2999
+ integrationId: string;
3000
+ data: WebhookPresenceTelephonyEventData;
3001
+ }
3002
+ /**
3003
+ * @public
3004
+ */
3005
+ export interface WebhookPresenceUserEventLocationData {
3006
+ address: string;
3007
+ lat: string;
3008
+ lng: string;
3009
+ }
3010
+ /**
3011
+ * @public
3012
+ */
3013
+ export interface WebhookPresenceUserEventData {
3014
+ extension: string;
3015
+ email: string;
3016
+ sourceId: string;
3017
+ status: string;
3018
+ until: string;
3019
+ message: string;
3020
+ location: WebhookPresenceUserEventLocationData;
3021
+ }
3022
+ /**
3023
+ * @public
3024
+ */
3025
+ export interface WebhookPresenceUserEvent {
3026
+ id: string;
3027
+ pbx?: string;
3028
+ company?: string;
3029
+ type: WebhookEventType;
3030
+ time: number;
3031
+ integrationId: string;
3032
+ data: WebhookPresenceUserEventData;
3033
+ }
2643
3034
  /**
2644
3035
  * @public
2645
3036
  * @enum
@@ -2669,7 +3060,7 @@ export type WebsocketTopic = typeof WebsocketTopic[keyof typeof WebsocketTopic];
2669
3060
  /**
2670
3061
  * @public
2671
3062
  */
2672
- export interface WebsocketConversationBroadcastEvent {
3063
+ export interface WebsocketConversationsBroadcastEvent {
2673
3064
  event: WebsocketEvent;
2674
3065
  topic: WebsocketTopic;
2675
3066
  data: __DocumentType;
@@ -2746,8 +3137,31 @@ export interface DescribeEventOutput {
2746
3137
  PresenceAnalyticsConferenceEvent?: PresenceAnalyticsConferenceEvent;
2747
3138
  PresenceAnalyticsTelephonyEvent?: PresenceAnalyticsTelephonyEvent;
2748
3139
  WebsocketPresenceBroadcastEvent?: WebsocketPresenceBroadcastEvent;
2749
- WebsocketConversationBroadcastEvent?: WebsocketConversationBroadcastEvent;
3140
+ WebsocketConversationsBroadcastEvent?: WebsocketConversationsBroadcastEvent;
2750
3141
  WebsocketTranscriptionsBroadcastEvent?: WebsocketTranscriptionsBroadcastEvent;
3142
+ WebhookPresenceUserEvent?: WebhookPresenceUserEvent;
3143
+ WebhookPresenceTelephonyEvent?: WebhookPresenceTelephonyEvent;
3144
+ WebhookPresenceConferenceEvent?: WebhookPresenceConferenceEvent;
3145
+ WebhookCallLiveProgressEvent?: WebhookCallLiveProgressEvent;
3146
+ WebhookCallLiveCompletedEvent?: WebhookCallLiveCompletedEvent;
3147
+ WebhookCallLiveInterruptedEvent?: WebhookCallLiveInterruptedEvent;
3148
+ WebhookCallLiveTranscriptionEvent?: WebhookCallLiveTranscriptionEvent;
3149
+ WebhookCallCompletedEvent?: WebhookCallCompletedEvent;
3150
+ WebhookConferenceLiveProgressEvent?: WebhookConferenceLiveProgressEvent;
3151
+ WebhookConferenceLiveCompletedEvent?: WebhookConferenceLiveCompletedEvent;
3152
+ WebhookConferenceLiveInterruptedEvent?: WebhookConferenceLiveInterruptedEvent;
3153
+ WebhookConferenceLiveJoinEvent?: WebhookConferenceLiveJoinEvent;
3154
+ WebhookConferenceLiveLeaveEvent?: WebhookConferenceLiveLeaveEvent;
3155
+ WebhookConferenceLiveTranscriptionEvent?: WebhookConferenceLiveTranscriptionEvent;
3156
+ WebhookConferenceCompletedEvent?: WebhookConferenceCompletedEvent;
3157
+ WebhookChatLiveProgressEvent?: WebhookChatLiveProgressEvent;
3158
+ WebhookChatLiveCompletedEvent?: WebhookChatLiveCompletedEvent;
3159
+ WebhookChatLiveInterruptedEvent?: WebhookChatLiveInterruptedEvent;
3160
+ WebhookChatManagerMissedEvent?: WebhookChatManagerMissedEvent;
3161
+ WebhookChatCompletedEvent?: WebhookChatCompletedEvent;
3162
+ WebhookOutdatedCallStartEvent?: WebhookOutdatedCallStartEvent;
3163
+ WebhookOutdatedCallUpdateEvent?: WebhookOutdatedCallUpdateEvent;
3164
+ WebhookOutdatedCallEndEvent?: WebhookOutdatedCallEndEvent;
2751
3165
  CallEventType?: CallEventType;
2752
3166
  ConferenceEventType?: ConferenceEventType;
2753
3167
  ChatEventType?: ChatEventType;
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.0.22",
4
+ "version": "1.0.24",
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",