-
Notifications
You must be signed in to change notification settings - Fork 0
/
interfaceTypes.ts
58 lines (51 loc) · 966 Bytes
/
interfaceTypes.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
export interface Suggestion {
key: string,
label: string,
next: string,
root: string,
endpoint: boolean
}
export interface Context {
lifespan: number,
name: string
}
export interface Message {
speech: string[],
type: number
}
export interface CustomMessage {
payload: {
dataType: string,
data: any
},
type: number
}
export interface Utterance {
data: {
text: string
}[]
}
export interface ArticleLink {
title: string,
content: string,
contentURL: string
}
export interface Article {
serviceName: string,
description: string,
keywords: string,
solution: string,
solutionUrl: string
}
export interface Intent {
auto: boolean,
contexts: string[],
name: string,
responses: {
affectedContexts: Context[],
messages: Message[],
resetContexts: boolean
}[],
userSays: Utterance[],
webhookUsed: boolean
}