@botpress/webchat 2.5.0 → 2.5.1
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/.storybook/main.ts +6 -1
- package/.turbo/turbo-build.log +12 -9
- package/dist/index.d.ts +14197 -15
- package/dist/index.js +11301 -10261
- package/dist/index.umd.cjs +72 -68
- package/dist/style.css +1 -1
- package/package.json +4 -2
- package/dist/adapters/index.d.ts +0 -2
- package/dist/adapters/target.d.ts +0 -83
- package/dist/adapters/typings.d.ts +0 -7
- package/dist/adapters/webchat-to-target.d.ts +0 -8
- package/dist/adapters/webchat.d.ts +0 -5
- package/dist/client/client.d.ts +0 -37
- package/dist/client/index.d.ts +0 -4
- package/dist/client/legacyClient.d.ts +0 -55
- package/dist/client/state-machine.d.ts +0 -40
- package/dist/client/types.d.ts +0 -35
- package/dist/components/Avatar.d.ts +0 -8
- package/dist/components/Block.d.ts +0 -9
- package/dist/components/Chat.d.ts +0 -30
- package/dist/components/CloseWindowButton.d.ts +0 -7
- package/dist/components/Composer/Composer.d.ts +0 -18
- package/dist/components/Composer/index.d.ts +0 -1
- package/dist/components/Composer/parts/FileAttachment.d.ts +0 -11
- package/dist/components/Composer/parts/FileInputButton.d.ts +0 -7
- package/dist/components/Composer/parts/SpeechRecognition.d.ts +0 -6
- package/dist/components/Composer/parts/TextInput.d.ts +0 -13
- package/dist/components/Composer/parts/index.d.ts +0 -4
- package/dist/components/Container/Container.d.ts +0 -16
- package/dist/components/Container/index.d.ts +0 -1
- package/dist/components/Fab/Fab.d.ts +0 -1
- package/dist/components/Fab/index.d.ts +0 -1
- package/dist/components/Header/Header.d.ts +0 -12
- package/dist/components/Header/index.d.ts +0 -1
- package/dist/components/Loader/Loader.d.ts +0 -5
- package/dist/components/Loader/index.d.ts +0 -1
- package/dist/components/Marquee/Marquee.d.ts +0 -7
- package/dist/components/Marquee/index.d.ts +0 -1
- package/dist/components/Message/Message.d.ts +0 -12
- package/dist/components/Message/index.d.ts +0 -1
- package/dist/components/MessageList/MessageList.d.ts +0 -16
- package/dist/components/MessageList/index.d.ts +0 -1
- package/dist/components/Modal/Modal.d.ts +0 -17
- package/dist/components/Modal/index.d.ts +0 -1
- package/dist/components/RestartConversationButton.d.ts +0 -7
- package/dist/components/TypingIndicator/TypingIndicator.d.ts +0 -2
- package/dist/components/TypingIndicator/index.d.ts +0 -1
- package/dist/components/Webchat.d.ts +0 -13
- package/dist/components/index.d.ts +0 -14
- package/dist/components/renderers/Audio/Audio.d.ts +0 -6
- package/dist/components/renderers/Audio/index.d.ts +0 -1
- package/dist/components/renderers/Bubble/Bubble.d.ts +0 -5
- package/dist/components/renderers/Bubble/index.d.ts +0 -1
- package/dist/components/renderers/Button/Button.d.ts +0 -4
- package/dist/components/renderers/Button/index.d.ts +0 -1
- package/dist/components/renderers/Carousel/Carousel.d.ts +0 -6
- package/dist/components/renderers/Carousel/index.d.ts +0 -1
- package/dist/components/renderers/Column/Column.d.ts +0 -5
- package/dist/components/renderers/Column/index.d.ts +0 -1
- package/dist/components/renderers/Custom/Custom.d.ts +0 -14
- package/dist/components/renderers/Custom/index.d.ts +0 -1
- package/dist/components/renderers/Dropdown/Dropdown.d.ts +0 -5
- package/dist/components/renderers/Dropdown/index.d.ts +0 -1
- package/dist/components/renderers/File/File.d.ts +0 -6
- package/dist/components/renderers/File/index.d.ts +0 -1
- package/dist/components/renderers/Image/Image.d.ts +0 -6
- package/dist/components/renderers/Image/index.d.ts +0 -1
- package/dist/components/renderers/Location/Location.d.ts +0 -6
- package/dist/components/renderers/Location/index.d.ts +0 -1
- package/dist/components/renderers/Row/Row.d.ts +0 -5
- package/dist/components/renderers/Row/index.d.ts +0 -1
- package/dist/components/renderers/Text/Text.d.ts +0 -4
- package/dist/components/renderers/Text/index.d.ts +0 -1
- package/dist/components/renderers/Video/Video.d.ts +0 -6
- package/dist/components/renderers/Video/index.d.ts +0 -1
- package/dist/components/renderers/index.d.ts +0 -2
- package/dist/contexts/MessageContext.d.ts +0 -8
- package/dist/contexts/ModalContext.d.ts +0 -14
- package/dist/contexts/index.d.ts +0 -2
- package/dist/gen/client/errors.d.ts +0 -211
- package/dist/gen/client/index.d.ts +0 -71
- package/dist/gen/client/models.d.ts +0 -259
- package/dist/gen/client/operations/addParticipant.d.ts +0 -57
- package/dist/gen/client/operations/createConversation.d.ts +0 -39
- package/dist/gen/client/operations/createEvent.d.ts +0 -79
- package/dist/gen/client/operations/createFile.d.ts +0 -65
- package/dist/gen/client/operations/createMessage.d.ts +0 -324
- package/dist/gen/client/operations/createUser.d.ts +0 -66
- package/dist/gen/client/operations/deleteConversation.d.ts +0 -22
- package/dist/gen/client/operations/deleteMessage.d.ts +0 -22
- package/dist/gen/client/operations/deleteUser.d.ts +0 -21
- package/dist/gen/client/operations/getConversation.d.ts +0 -36
- package/dist/gen/client/operations/getEvent.d.ts +0 -58
- package/dist/gen/client/operations/getMessage.d.ts +0 -182
- package/dist/gen/client/operations/getParticipant.d.ts +0 -54
- package/dist/gen/client/operations/getUser.d.ts +0 -52
- package/dist/gen/client/operations/listConversationMessages.d.ts +0 -186
- package/dist/gen/client/operations/listConversations.d.ts +0 -42
- package/dist/gen/client/operations/listParticipants.d.ts +0 -57
- package/dist/gen/client/operations/listenConversation.d.ts +0 -22
- package/dist/gen/client/operations/removeParticipant.d.ts +0 -23
- package/dist/gen/client/operations/updateUser.d.ts +0 -66
- package/dist/gen/client/to-axios.d.ts +0 -16
- package/dist/gen/signals/custom.t.d.ts +0 -8
- package/dist/gen/signals/custom.z.d.ts +0 -22
- package/dist/gen/signals/index.d.ts +0 -1035
- package/dist/gen/signals/messageCreated.t.d.ts +0 -163
- package/dist/gen/signals/messageCreated.z.d.ts +0 -930
- package/dist/gen/signals/typingStarted.t.d.ts +0 -6
- package/dist/gen/signals/typingStarted.z.d.ts +0 -22
- package/dist/gen/signals/typingStopped.t.d.ts +0 -4
- package/dist/gen/signals/typingStopped.z.d.ts +0 -12
- package/dist/gen/signals/webchatConfig.t.d.ts +0 -8
- package/dist/gen/signals/webchatConfig.z.d.ts +0 -22
- package/dist/gen/signals/webchatVisibility.t.d.ts +0 -6
- package/dist/gen/signals/webchatVisibility.z.d.ts +0 -22
- package/dist/get-client.d.ts +0 -7
- package/dist/hooks/index.d.ts +0 -5
- package/dist/hooks/useClient.d.ts +0 -6
- package/dist/hooks/useImageSize.d.ts +0 -2
- package/dist/hooks/useIsTyping.d.ts +0 -4
- package/dist/hooks/useRefresh.d.ts +0 -10
- package/dist/hooks/useWebchatClient.d.ts +0 -50
- package/dist/providers/ModalProvider.d.ts +0 -8
- package/dist/providers/StylesheetProvider.d.ts +0 -4
- package/dist/providers/index.d.ts +0 -2
- package/dist/schemas/configuration.d.ts +0 -157
- package/dist/schemas/index.d.ts +0 -3
- package/dist/schemas/init.d.ts +0 -8487
- package/dist/schemas/theme.d.ts +0 -4358
- package/dist/stores/composerFileStore.d.ts +0 -21
- package/dist/stores/customComponentsStore.d.ts +0 -9
- package/dist/stores/index.d.ts +0 -5
- package/dist/stores/messageHistoryStore.d.ts +0 -20
- package/dist/stores/messagesStore.d.ts +0 -21
- package/dist/stores/userStore.d.ts +0 -32
- package/dist/stores/webchatStore.d.ts +0 -13
- package/dist/stories/Messages/Audio.stories.d.ts +0 -6
- package/dist/stories/Messages/Bloc.stories.d.ts +0 -6
- package/dist/stories/Messages/Card.stories.d.ts +0 -6
- package/dist/stories/Messages/Carousel.stories.d.ts +0 -6
- package/dist/stories/Messages/Choice.stories.d.ts +0 -6
- package/dist/stories/Messages/Custom.stories.d.ts +0 -12
- package/dist/stories/Messages/Dropdown.stories.d.ts +0 -6
- package/dist/stories/Messages/File.stories.d.ts +0 -6
- package/dist/stories/Messages/FileAttachmentCard.stories.d.ts +0 -6
- package/dist/stories/Messages/Image.stories.d.ts +0 -6
- package/dist/stories/Messages/Location.stories.d.ts +0 -6
- package/dist/stories/Messages/Text.stories.d.ts +0 -6
- package/dist/stories/Messages/Video.stories.d.ts +0 -6
- package/dist/styles/classes.d.ts +0 -410
- package/dist/styles/index.d.ts +0 -1
- package/dist/types/block-type.d.ts +0 -58
- package/dist/types/configuration.d.ts +0 -5
- package/dist/types/image.d.ts +0 -11
- package/dist/types/index.d.ts +0 -5
- package/dist/types/init.d.ts +0 -6
- package/dist/types/theme.d.ts +0 -7
- package/dist/utils/colors.d.ts +0 -21
- package/dist/utils/colors.test.d.ts +0 -1
- package/dist/utils/eventEmitter.d.ts +0 -12
- package/dist/utils/generateCSS.d.ts +0 -1
- package/dist/utils/hashStringToInt.d.ts +0 -1
- package/dist/utils/images.d.ts +0 -2
- package/dist/utils/index.d.ts +0 -7
- package/dist/utils/message.d.ts +0 -8
- package/dist/utils/message.test.d.ts +0 -1
- package/dist/utils/theme.d.ts +0 -2
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
export interface CreateMessageRequestHeaders {
|
|
2
|
-
"x-user-key": string;
|
|
3
|
-
}
|
|
4
|
-
export interface CreateMessageRequestQuery {
|
|
5
|
-
}
|
|
6
|
-
export interface CreateMessageRequestParams {
|
|
7
|
-
}
|
|
8
|
-
export interface CreateMessageRequestBody {
|
|
9
|
-
/**
|
|
10
|
-
* Payload is the content type of the message.
|
|
11
|
-
*/
|
|
12
|
-
payload: {
|
|
13
|
-
audioUrl: string;
|
|
14
|
-
type: "audio";
|
|
15
|
-
[k: string]: any;
|
|
16
|
-
} | {
|
|
17
|
-
title: string;
|
|
18
|
-
subtitle?: string;
|
|
19
|
-
imageUrl?: string;
|
|
20
|
-
actions: {
|
|
21
|
-
action: "postback" | "url" | "say";
|
|
22
|
-
label: string;
|
|
23
|
-
value: string;
|
|
24
|
-
[k: string]: any;
|
|
25
|
-
}[];
|
|
26
|
-
type: "card";
|
|
27
|
-
[k: string]: any;
|
|
28
|
-
} | {
|
|
29
|
-
items: {
|
|
30
|
-
title: string;
|
|
31
|
-
subtitle?: string;
|
|
32
|
-
imageUrl?: string;
|
|
33
|
-
actions: {
|
|
34
|
-
action: "postback" | "url" | "say";
|
|
35
|
-
label: string;
|
|
36
|
-
value: string;
|
|
37
|
-
[k: string]: any;
|
|
38
|
-
}[];
|
|
39
|
-
[k: string]: any;
|
|
40
|
-
}[];
|
|
41
|
-
type: "carousel";
|
|
42
|
-
[k: string]: any;
|
|
43
|
-
} | {
|
|
44
|
-
text: string;
|
|
45
|
-
options: {
|
|
46
|
-
label: string;
|
|
47
|
-
value: string;
|
|
48
|
-
[k: string]: any;
|
|
49
|
-
}[];
|
|
50
|
-
type: "choice";
|
|
51
|
-
disableFreeText?: boolean;
|
|
52
|
-
[k: string]: any;
|
|
53
|
-
} | {
|
|
54
|
-
text: string;
|
|
55
|
-
options: {
|
|
56
|
-
label: string;
|
|
57
|
-
value: string;
|
|
58
|
-
[k: string]: any;
|
|
59
|
-
}[];
|
|
60
|
-
type: "dropdown";
|
|
61
|
-
[k: string]: any;
|
|
62
|
-
} | {
|
|
63
|
-
fileUrl: string;
|
|
64
|
-
title?: string;
|
|
65
|
-
type: "file";
|
|
66
|
-
[k: string]: any;
|
|
67
|
-
} | {
|
|
68
|
-
imageUrl: string;
|
|
69
|
-
type: "image";
|
|
70
|
-
[k: string]: any;
|
|
71
|
-
} | {
|
|
72
|
-
latitude: number;
|
|
73
|
-
longitude: number;
|
|
74
|
-
address?: string;
|
|
75
|
-
title?: string;
|
|
76
|
-
type: "location";
|
|
77
|
-
[k: string]: any;
|
|
78
|
-
} | {
|
|
79
|
-
markdown: string;
|
|
80
|
-
type: "markdown";
|
|
81
|
-
[k: string]: any;
|
|
82
|
-
} | {
|
|
83
|
-
text: string;
|
|
84
|
-
type: "text";
|
|
85
|
-
[k: string]: any;
|
|
86
|
-
} | {
|
|
87
|
-
videoUrl: string;
|
|
88
|
-
type: "video";
|
|
89
|
-
[k: string]: any;
|
|
90
|
-
} | {
|
|
91
|
-
items: ({
|
|
92
|
-
type: "text";
|
|
93
|
-
payload: {
|
|
94
|
-
text: string;
|
|
95
|
-
[k: string]: any;
|
|
96
|
-
};
|
|
97
|
-
[k: string]: any;
|
|
98
|
-
} | {
|
|
99
|
-
type: "markdown";
|
|
100
|
-
payload: {
|
|
101
|
-
markdown: string;
|
|
102
|
-
[k: string]: any;
|
|
103
|
-
};
|
|
104
|
-
[k: string]: any;
|
|
105
|
-
} | {
|
|
106
|
-
type: "image";
|
|
107
|
-
payload: {
|
|
108
|
-
imageUrl: string;
|
|
109
|
-
[k: string]: any;
|
|
110
|
-
};
|
|
111
|
-
[k: string]: any;
|
|
112
|
-
} | {
|
|
113
|
-
type: "audio";
|
|
114
|
-
payload: {
|
|
115
|
-
audioUrl: string;
|
|
116
|
-
[k: string]: any;
|
|
117
|
-
};
|
|
118
|
-
[k: string]: any;
|
|
119
|
-
} | {
|
|
120
|
-
type: "video";
|
|
121
|
-
payload: {
|
|
122
|
-
videoUrl: string;
|
|
123
|
-
[k: string]: any;
|
|
124
|
-
};
|
|
125
|
-
[k: string]: any;
|
|
126
|
-
} | {
|
|
127
|
-
type: "file";
|
|
128
|
-
payload: {
|
|
129
|
-
fileUrl: string;
|
|
130
|
-
title?: string;
|
|
131
|
-
[k: string]: any;
|
|
132
|
-
};
|
|
133
|
-
[k: string]: any;
|
|
134
|
-
} | {
|
|
135
|
-
type: "location";
|
|
136
|
-
payload: {
|
|
137
|
-
latitude: number;
|
|
138
|
-
longitude: number;
|
|
139
|
-
address?: string;
|
|
140
|
-
title?: string;
|
|
141
|
-
[k: string]: any;
|
|
142
|
-
};
|
|
143
|
-
[k: string]: any;
|
|
144
|
-
})[];
|
|
145
|
-
type: "bloc";
|
|
146
|
-
[k: string]: any;
|
|
147
|
-
};
|
|
148
|
-
/**
|
|
149
|
-
* ID of the [Conversation](#schema_conversation)
|
|
150
|
-
*/
|
|
151
|
-
conversationId: string;
|
|
152
|
-
}
|
|
153
|
-
export type CreateMessageInput = CreateMessageRequestBody & CreateMessageRequestHeaders & CreateMessageRequestQuery & CreateMessageRequestParams;
|
|
154
|
-
export type CreateMessageRequest = {
|
|
155
|
-
headers: CreateMessageRequestHeaders;
|
|
156
|
-
query: CreateMessageRequestQuery;
|
|
157
|
-
params: CreateMessageRequestParams;
|
|
158
|
-
body: CreateMessageRequestBody;
|
|
159
|
-
};
|
|
160
|
-
export declare const parseReq: (input: CreateMessageInput) => CreateMessageRequest & {
|
|
161
|
-
path: string;
|
|
162
|
-
};
|
|
163
|
-
export interface CreateMessageResponse {
|
|
164
|
-
/**
|
|
165
|
-
* The Message object represents a message in a [Conversation](#schema_conversation) for a specific [User](#schema_user).
|
|
166
|
-
*/
|
|
167
|
-
message: {
|
|
168
|
-
/**
|
|
169
|
-
* Id of the [Message](#schema_message)
|
|
170
|
-
*/
|
|
171
|
-
id: string;
|
|
172
|
-
/**
|
|
173
|
-
* Creation date of the [Message](#schema_message) in ISO 8601 format
|
|
174
|
-
*/
|
|
175
|
-
createdAt: string;
|
|
176
|
-
/**
|
|
177
|
-
* Payload is the content type of the message.
|
|
178
|
-
*/
|
|
179
|
-
payload: {
|
|
180
|
-
audioUrl: string;
|
|
181
|
-
type: "audio";
|
|
182
|
-
[k: string]: any;
|
|
183
|
-
} | {
|
|
184
|
-
title: string;
|
|
185
|
-
subtitle?: string;
|
|
186
|
-
imageUrl?: string;
|
|
187
|
-
actions: {
|
|
188
|
-
action: "postback" | "url" | "say";
|
|
189
|
-
label: string;
|
|
190
|
-
value: string;
|
|
191
|
-
[k: string]: any;
|
|
192
|
-
}[];
|
|
193
|
-
type: "card";
|
|
194
|
-
[k: string]: any;
|
|
195
|
-
} | {
|
|
196
|
-
items: {
|
|
197
|
-
title: string;
|
|
198
|
-
subtitle?: string;
|
|
199
|
-
imageUrl?: string;
|
|
200
|
-
actions: {
|
|
201
|
-
action: "postback" | "url" | "say";
|
|
202
|
-
label: string;
|
|
203
|
-
value: string;
|
|
204
|
-
[k: string]: any;
|
|
205
|
-
}[];
|
|
206
|
-
[k: string]: any;
|
|
207
|
-
}[];
|
|
208
|
-
type: "carousel";
|
|
209
|
-
[k: string]: any;
|
|
210
|
-
} | {
|
|
211
|
-
text: string;
|
|
212
|
-
options: {
|
|
213
|
-
label: string;
|
|
214
|
-
value: string;
|
|
215
|
-
[k: string]: any;
|
|
216
|
-
}[];
|
|
217
|
-
type: "choice";
|
|
218
|
-
disableFreeText?: boolean;
|
|
219
|
-
[k: string]: any;
|
|
220
|
-
} | {
|
|
221
|
-
text: string;
|
|
222
|
-
options: {
|
|
223
|
-
label: string;
|
|
224
|
-
value: string;
|
|
225
|
-
[k: string]: any;
|
|
226
|
-
}[];
|
|
227
|
-
type: "dropdown";
|
|
228
|
-
[k: string]: any;
|
|
229
|
-
} | {
|
|
230
|
-
fileUrl: string;
|
|
231
|
-
title?: string;
|
|
232
|
-
type: "file";
|
|
233
|
-
[k: string]: any;
|
|
234
|
-
} | {
|
|
235
|
-
imageUrl: string;
|
|
236
|
-
type: "image";
|
|
237
|
-
[k: string]: any;
|
|
238
|
-
} | {
|
|
239
|
-
latitude: number;
|
|
240
|
-
longitude: number;
|
|
241
|
-
address?: string;
|
|
242
|
-
title?: string;
|
|
243
|
-
type: "location";
|
|
244
|
-
[k: string]: any;
|
|
245
|
-
} | {
|
|
246
|
-
markdown: string;
|
|
247
|
-
type: "markdown";
|
|
248
|
-
[k: string]: any;
|
|
249
|
-
} | {
|
|
250
|
-
text: string;
|
|
251
|
-
type: "text";
|
|
252
|
-
[k: string]: any;
|
|
253
|
-
} | {
|
|
254
|
-
videoUrl: string;
|
|
255
|
-
type: "video";
|
|
256
|
-
[k: string]: any;
|
|
257
|
-
} | {
|
|
258
|
-
items: ({
|
|
259
|
-
type: "text";
|
|
260
|
-
payload: {
|
|
261
|
-
text: string;
|
|
262
|
-
[k: string]: any;
|
|
263
|
-
};
|
|
264
|
-
[k: string]: any;
|
|
265
|
-
} | {
|
|
266
|
-
type: "markdown";
|
|
267
|
-
payload: {
|
|
268
|
-
markdown: string;
|
|
269
|
-
[k: string]: any;
|
|
270
|
-
};
|
|
271
|
-
[k: string]: any;
|
|
272
|
-
} | {
|
|
273
|
-
type: "image";
|
|
274
|
-
payload: {
|
|
275
|
-
imageUrl: string;
|
|
276
|
-
[k: string]: any;
|
|
277
|
-
};
|
|
278
|
-
[k: string]: any;
|
|
279
|
-
} | {
|
|
280
|
-
type: "audio";
|
|
281
|
-
payload: {
|
|
282
|
-
audioUrl: string;
|
|
283
|
-
[k: string]: any;
|
|
284
|
-
};
|
|
285
|
-
[k: string]: any;
|
|
286
|
-
} | {
|
|
287
|
-
type: "video";
|
|
288
|
-
payload: {
|
|
289
|
-
videoUrl: string;
|
|
290
|
-
[k: string]: any;
|
|
291
|
-
};
|
|
292
|
-
[k: string]: any;
|
|
293
|
-
} | {
|
|
294
|
-
type: "file";
|
|
295
|
-
payload: {
|
|
296
|
-
fileUrl: string;
|
|
297
|
-
title?: string;
|
|
298
|
-
[k: string]: any;
|
|
299
|
-
};
|
|
300
|
-
[k: string]: any;
|
|
301
|
-
} | {
|
|
302
|
-
type: "location";
|
|
303
|
-
payload: {
|
|
304
|
-
latitude: number;
|
|
305
|
-
longitude: number;
|
|
306
|
-
address?: string;
|
|
307
|
-
title?: string;
|
|
308
|
-
[k: string]: any;
|
|
309
|
-
};
|
|
310
|
-
[k: string]: any;
|
|
311
|
-
})[];
|
|
312
|
-
type: "bloc";
|
|
313
|
-
[k: string]: any;
|
|
314
|
-
};
|
|
315
|
-
/**
|
|
316
|
-
* ID of the [User](#schema_user)
|
|
317
|
-
*/
|
|
318
|
-
userId: string;
|
|
319
|
-
/**
|
|
320
|
-
* ID of the [Conversation](#schema_conversation)
|
|
321
|
-
*/
|
|
322
|
-
conversationId: string;
|
|
323
|
-
};
|
|
324
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
export interface CreateUserRequestHeaders {
|
|
2
|
-
}
|
|
3
|
-
export interface CreateUserRequestQuery {
|
|
4
|
-
}
|
|
5
|
-
export interface CreateUserRequestParams {
|
|
6
|
-
}
|
|
7
|
-
export interface CreateUserRequestBody {
|
|
8
|
-
/**
|
|
9
|
-
* Name of the [User](#schema_user) (not a unique identifier)
|
|
10
|
-
*/
|
|
11
|
-
name?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Picture url of the [User](#schema_user)
|
|
14
|
-
*/
|
|
15
|
-
pictureUrl?: string;
|
|
16
|
-
/**
|
|
17
|
-
* User data
|
|
18
|
-
*/
|
|
19
|
-
userData?: {
|
|
20
|
-
[k: string]: any;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export type CreateUserInput = CreateUserRequestBody & CreateUserRequestHeaders & CreateUserRequestQuery & CreateUserRequestParams;
|
|
24
|
-
export type CreateUserRequest = {
|
|
25
|
-
headers: CreateUserRequestHeaders;
|
|
26
|
-
query: CreateUserRequestQuery;
|
|
27
|
-
params: CreateUserRequestParams;
|
|
28
|
-
body: CreateUserRequestBody;
|
|
29
|
-
};
|
|
30
|
-
export declare const parseReq: (input: CreateUserInput) => CreateUserRequest & {
|
|
31
|
-
path: string;
|
|
32
|
-
};
|
|
33
|
-
export interface CreateUserResponse {
|
|
34
|
-
/**
|
|
35
|
-
* The user object represents someone interacting with the bot within a specific integration. The same person interacting with a bot in slack and messenger will be represented with two different users.
|
|
36
|
-
*/
|
|
37
|
-
user: {
|
|
38
|
-
/**
|
|
39
|
-
* Name of the [User](#schema_user)
|
|
40
|
-
*/
|
|
41
|
-
name?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Picture url of the [User](#schema_user)
|
|
44
|
-
*/
|
|
45
|
-
pictureUrl?: string;
|
|
46
|
-
/**
|
|
47
|
-
* User data
|
|
48
|
-
*/
|
|
49
|
-
data?: {
|
|
50
|
-
[k: string]: any;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* Id of the [User](#schema_user)
|
|
54
|
-
*/
|
|
55
|
-
id: string;
|
|
56
|
-
/**
|
|
57
|
-
* Creation date of the [User](#schema_user) in ISO 8601 format
|
|
58
|
-
*/
|
|
59
|
-
createdAt: string;
|
|
60
|
-
/**
|
|
61
|
-
* Updating date of the [User](#schema_user) in ISO 8601 format
|
|
62
|
-
*/
|
|
63
|
-
updatedAt: string;
|
|
64
|
-
};
|
|
65
|
-
key: string;
|
|
66
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface DeleteConversationRequestHeaders {
|
|
2
|
-
"x-user-key": string;
|
|
3
|
-
}
|
|
4
|
-
export interface DeleteConversationRequestQuery {
|
|
5
|
-
}
|
|
6
|
-
export interface DeleteConversationRequestParams {
|
|
7
|
-
id: string;
|
|
8
|
-
}
|
|
9
|
-
export interface DeleteConversationRequestBody {
|
|
10
|
-
}
|
|
11
|
-
export type DeleteConversationInput = DeleteConversationRequestBody & DeleteConversationRequestHeaders & DeleteConversationRequestQuery & DeleteConversationRequestParams;
|
|
12
|
-
export type DeleteConversationRequest = {
|
|
13
|
-
headers: DeleteConversationRequestHeaders;
|
|
14
|
-
query: DeleteConversationRequestQuery;
|
|
15
|
-
params: DeleteConversationRequestParams;
|
|
16
|
-
body: DeleteConversationRequestBody;
|
|
17
|
-
};
|
|
18
|
-
export declare const parseReq: (input: DeleteConversationInput) => DeleteConversationRequest & {
|
|
19
|
-
path: string;
|
|
20
|
-
};
|
|
21
|
-
export interface DeleteConversationResponse {
|
|
22
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface DeleteMessageRequestHeaders {
|
|
2
|
-
"x-user-key": string;
|
|
3
|
-
}
|
|
4
|
-
export interface DeleteMessageRequestQuery {
|
|
5
|
-
}
|
|
6
|
-
export interface DeleteMessageRequestParams {
|
|
7
|
-
id: string;
|
|
8
|
-
}
|
|
9
|
-
export interface DeleteMessageRequestBody {
|
|
10
|
-
}
|
|
11
|
-
export type DeleteMessageInput = DeleteMessageRequestBody & DeleteMessageRequestHeaders & DeleteMessageRequestQuery & DeleteMessageRequestParams;
|
|
12
|
-
export type DeleteMessageRequest = {
|
|
13
|
-
headers: DeleteMessageRequestHeaders;
|
|
14
|
-
query: DeleteMessageRequestQuery;
|
|
15
|
-
params: DeleteMessageRequestParams;
|
|
16
|
-
body: DeleteMessageRequestBody;
|
|
17
|
-
};
|
|
18
|
-
export declare const parseReq: (input: DeleteMessageInput) => DeleteMessageRequest & {
|
|
19
|
-
path: string;
|
|
20
|
-
};
|
|
21
|
-
export interface DeleteMessageResponse {
|
|
22
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface DeleteUserRequestHeaders {
|
|
2
|
-
"x-user-key": string;
|
|
3
|
-
}
|
|
4
|
-
export interface DeleteUserRequestQuery {
|
|
5
|
-
}
|
|
6
|
-
export interface DeleteUserRequestParams {
|
|
7
|
-
}
|
|
8
|
-
export interface DeleteUserRequestBody {
|
|
9
|
-
}
|
|
10
|
-
export type DeleteUserInput = DeleteUserRequestBody & DeleteUserRequestHeaders & DeleteUserRequestQuery & DeleteUserRequestParams;
|
|
11
|
-
export type DeleteUserRequest = {
|
|
12
|
-
headers: DeleteUserRequestHeaders;
|
|
13
|
-
query: DeleteUserRequestQuery;
|
|
14
|
-
params: DeleteUserRequestParams;
|
|
15
|
-
body: DeleteUserRequestBody;
|
|
16
|
-
};
|
|
17
|
-
export declare const parseReq: (input: DeleteUserInput) => DeleteUserRequest & {
|
|
18
|
-
path: string;
|
|
19
|
-
};
|
|
20
|
-
export interface DeleteUserResponse {
|
|
21
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export interface GetConversationRequestHeaders {
|
|
2
|
-
"x-user-key": string;
|
|
3
|
-
}
|
|
4
|
-
export interface GetConversationRequestQuery {
|
|
5
|
-
}
|
|
6
|
-
export interface GetConversationRequestParams {
|
|
7
|
-
id: string;
|
|
8
|
-
}
|
|
9
|
-
export interface GetConversationRequestBody {
|
|
10
|
-
}
|
|
11
|
-
export type GetConversationInput = GetConversationRequestBody & GetConversationRequestHeaders & GetConversationRequestQuery & GetConversationRequestParams;
|
|
12
|
-
export type GetConversationRequest = {
|
|
13
|
-
headers: GetConversationRequestHeaders;
|
|
14
|
-
query: GetConversationRequestQuery;
|
|
15
|
-
params: GetConversationRequestParams;
|
|
16
|
-
body: GetConversationRequestBody;
|
|
17
|
-
};
|
|
18
|
-
export declare const parseReq: (input: GetConversationInput) => GetConversationRequest & {
|
|
19
|
-
path: string;
|
|
20
|
-
};
|
|
21
|
-
export interface GetConversationResponse {
|
|
22
|
-
conversation: {
|
|
23
|
-
/**
|
|
24
|
-
* Id of the [Conversation](#schema_conversation)
|
|
25
|
-
*/
|
|
26
|
-
id: string;
|
|
27
|
-
/**
|
|
28
|
-
* Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
29
|
-
*/
|
|
30
|
-
createdAt: string;
|
|
31
|
-
/**
|
|
32
|
-
* Updating date of the [Conversation](#schema_conversation) in ISO 8601 format
|
|
33
|
-
*/
|
|
34
|
-
updatedAt: string;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export interface GetEventRequestHeaders {
|
|
2
|
-
"x-user-key": string;
|
|
3
|
-
}
|
|
4
|
-
export interface GetEventRequestQuery {
|
|
5
|
-
}
|
|
6
|
-
export interface GetEventRequestParams {
|
|
7
|
-
id: string;
|
|
8
|
-
}
|
|
9
|
-
export interface GetEventRequestBody {
|
|
10
|
-
}
|
|
11
|
-
export type GetEventInput = GetEventRequestBody & GetEventRequestHeaders & GetEventRequestQuery & GetEventRequestParams;
|
|
12
|
-
export type GetEventRequest = {
|
|
13
|
-
headers: GetEventRequestHeaders;
|
|
14
|
-
query: GetEventRequestQuery;
|
|
15
|
-
params: GetEventRequestParams;
|
|
16
|
-
body: GetEventRequestBody;
|
|
17
|
-
};
|
|
18
|
-
export declare const parseReq: (input: GetEventInput) => GetEventRequest & {
|
|
19
|
-
path: string;
|
|
20
|
-
};
|
|
21
|
-
export interface GetEventResponse {
|
|
22
|
-
event: {
|
|
23
|
-
/**
|
|
24
|
-
* ID of the [Event](#schema_event).
|
|
25
|
-
*/
|
|
26
|
-
id: string;
|
|
27
|
-
/**
|
|
28
|
-
* Creation date of the [Event](#schema_event) in ISO 8601 format
|
|
29
|
-
*/
|
|
30
|
-
createdAt: string;
|
|
31
|
-
/**
|
|
32
|
-
* Payload is the content of the event.
|
|
33
|
-
*/
|
|
34
|
-
payload: {
|
|
35
|
-
type: "custom";
|
|
36
|
-
data: {
|
|
37
|
-
[k: string]: any;
|
|
38
|
-
};
|
|
39
|
-
[k: string]: any;
|
|
40
|
-
} | {
|
|
41
|
-
type: "conversation_started";
|
|
42
|
-
data: {
|
|
43
|
-
[k: string]: {
|
|
44
|
-
[k: string]: any;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
[k: string]: any;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* ID of the [Conversation](#schema_conversation).
|
|
51
|
-
*/
|
|
52
|
-
conversationId: string;
|
|
53
|
-
/**
|
|
54
|
-
* ID of the [User](#schema_user).
|
|
55
|
-
*/
|
|
56
|
-
userId: string;
|
|
57
|
-
};
|
|
58
|
-
}
|