-
Notifications
You must be signed in to change notification settings - Fork 180
/
eventsTypes.ts
110 lines (89 loc) · 1.82 KB
/
eventsTypes.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/**
* Enum representing various types of events and their descriptions.
*/
export enum EventType {
/**
* Audio: Play audio
*/
AUDIO_PLAY = 'audio:play',
/**
* Audio: Stop currently playing audio
*/
AUDIO_PLAY_STOP = 'audio:play:stop',
/**
* Audio: Use TTS to speak the given text
*/
AUDIO_SAY = 'audio:say',
/**
* Audio: Stop currently playing TTS
*/
AUDIO_SAY_STOP = 'audio:say:stop',
/**
* Audio: Play DTMF audio
*/
AUDIO_DTMF = 'audio:dtmf',
/**
* Audio: Record the audio in the conversation
*/
AUDIO_RECORD = 'audio:record',
/**
* Audio: Stop current recording of audio
*/
AUDIO_RECORD_STOP = 'audio:record:stop',
/**
* Audio: Mute audio
*/
AUDIO_MUTE_ON = 'audio:mute:on',
/**
* Audio: Unmute audio
*/
AUDIO_MUTE_OFF = 'audio:mute:off',
/**
* Audio: Earmuff audio
*/
AUDIO_EAR_MUFF_ON = 'audio:earmuff:on',
/**
* Audio: Earmuff audio
*/
AUDIO_EAR_MUFF_OFF = 'audio:earmuff:off',
/**
* Audio: Speaking on
*/
AUDIO_SPEAKING_ON = 'audio:speaking:on',
/**
* Audio: Speaking on
*/
AUDIO_SPEAKING_OFF = 'audio:speaking:off',
/**
* Custom: Custom event
*/
CUSTOM = 'custom',
/**
* Ephemeral: Ephemeral
*/
EPHEMERAL = 'ephemeral',
/**
* Message: Message (Text, Image, Audio, Video, File, Template, Custom, VCard, Location, Random)
*/
MESSAGE = 'message',
/**
* Message: Message submitted
*/
MESSAGE_SUBMITTED = 'message:submitted',
/**
* Message: Message rejected
*/
MESSAGE_REJECTED = 'message:rejected',
/**
* Message: Message undeliverable
*/
MESSAGE_UNDELIVERABLE = 'message:undeliverable',
/**
* Message: Message seen
*/
MESSAGE_SEEN = 'message:seen',
/**
* Message: Message delivered
*/
MESSAGE_DELIVERED = 'message:delivered',
}