@botpress/webchat 2.5.0 → 2.6.0

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.
Files changed (168) hide show
  1. package/.storybook/main.ts +6 -1
  2. package/.turbo/turbo-build.log +12 -9
  3. package/dist/index.d.ts +14197 -15
  4. package/dist/index.js +11228 -10200
  5. package/dist/index.umd.cjs +72 -68
  6. package/dist/style.css +1 -1
  7. package/package.json +4 -2
  8. package/dist/adapters/index.d.ts +0 -2
  9. package/dist/adapters/target.d.ts +0 -83
  10. package/dist/adapters/typings.d.ts +0 -7
  11. package/dist/adapters/webchat-to-target.d.ts +0 -8
  12. package/dist/adapters/webchat.d.ts +0 -5
  13. package/dist/client/client.d.ts +0 -37
  14. package/dist/client/index.d.ts +0 -4
  15. package/dist/client/legacyClient.d.ts +0 -55
  16. package/dist/client/state-machine.d.ts +0 -40
  17. package/dist/client/types.d.ts +0 -35
  18. package/dist/components/Avatar.d.ts +0 -8
  19. package/dist/components/Block.d.ts +0 -9
  20. package/dist/components/Chat.d.ts +0 -30
  21. package/dist/components/CloseWindowButton.d.ts +0 -7
  22. package/dist/components/Composer/Composer.d.ts +0 -18
  23. package/dist/components/Composer/index.d.ts +0 -1
  24. package/dist/components/Composer/parts/FileAttachment.d.ts +0 -11
  25. package/dist/components/Composer/parts/FileInputButton.d.ts +0 -7
  26. package/dist/components/Composer/parts/SpeechRecognition.d.ts +0 -6
  27. package/dist/components/Composer/parts/TextInput.d.ts +0 -13
  28. package/dist/components/Composer/parts/index.d.ts +0 -4
  29. package/dist/components/Container/Container.d.ts +0 -16
  30. package/dist/components/Container/index.d.ts +0 -1
  31. package/dist/components/Fab/Fab.d.ts +0 -1
  32. package/dist/components/Fab/index.d.ts +0 -1
  33. package/dist/components/Header/Header.d.ts +0 -12
  34. package/dist/components/Header/index.d.ts +0 -1
  35. package/dist/components/Loader/Loader.d.ts +0 -5
  36. package/dist/components/Loader/index.d.ts +0 -1
  37. package/dist/components/Marquee/Marquee.d.ts +0 -7
  38. package/dist/components/Marquee/index.d.ts +0 -1
  39. package/dist/components/Message/Message.d.ts +0 -12
  40. package/dist/components/Message/index.d.ts +0 -1
  41. package/dist/components/MessageList/MessageList.d.ts +0 -16
  42. package/dist/components/MessageList/index.d.ts +0 -1
  43. package/dist/components/Modal/Modal.d.ts +0 -17
  44. package/dist/components/Modal/index.d.ts +0 -1
  45. package/dist/components/RestartConversationButton.d.ts +0 -7
  46. package/dist/components/TypingIndicator/TypingIndicator.d.ts +0 -2
  47. package/dist/components/TypingIndicator/index.d.ts +0 -1
  48. package/dist/components/Webchat.d.ts +0 -13
  49. package/dist/components/index.d.ts +0 -14
  50. package/dist/components/renderers/Audio/Audio.d.ts +0 -6
  51. package/dist/components/renderers/Audio/index.d.ts +0 -1
  52. package/dist/components/renderers/Bubble/Bubble.d.ts +0 -5
  53. package/dist/components/renderers/Bubble/index.d.ts +0 -1
  54. package/dist/components/renderers/Button/Button.d.ts +0 -4
  55. package/dist/components/renderers/Button/index.d.ts +0 -1
  56. package/dist/components/renderers/Carousel/Carousel.d.ts +0 -6
  57. package/dist/components/renderers/Carousel/index.d.ts +0 -1
  58. package/dist/components/renderers/Column/Column.d.ts +0 -5
  59. package/dist/components/renderers/Column/index.d.ts +0 -1
  60. package/dist/components/renderers/Custom/Custom.d.ts +0 -14
  61. package/dist/components/renderers/Custom/index.d.ts +0 -1
  62. package/dist/components/renderers/Dropdown/Dropdown.d.ts +0 -5
  63. package/dist/components/renderers/Dropdown/index.d.ts +0 -1
  64. package/dist/components/renderers/File/File.d.ts +0 -6
  65. package/dist/components/renderers/File/index.d.ts +0 -1
  66. package/dist/components/renderers/Image/Image.d.ts +0 -6
  67. package/dist/components/renderers/Image/index.d.ts +0 -1
  68. package/dist/components/renderers/Location/Location.d.ts +0 -6
  69. package/dist/components/renderers/Location/index.d.ts +0 -1
  70. package/dist/components/renderers/Row/Row.d.ts +0 -5
  71. package/dist/components/renderers/Row/index.d.ts +0 -1
  72. package/dist/components/renderers/Text/Text.d.ts +0 -4
  73. package/dist/components/renderers/Text/index.d.ts +0 -1
  74. package/dist/components/renderers/Video/Video.d.ts +0 -6
  75. package/dist/components/renderers/Video/index.d.ts +0 -1
  76. package/dist/components/renderers/index.d.ts +0 -2
  77. package/dist/contexts/MessageContext.d.ts +0 -8
  78. package/dist/contexts/ModalContext.d.ts +0 -14
  79. package/dist/contexts/index.d.ts +0 -2
  80. package/dist/gen/client/errors.d.ts +0 -211
  81. package/dist/gen/client/index.d.ts +0 -71
  82. package/dist/gen/client/models.d.ts +0 -259
  83. package/dist/gen/client/operations/addParticipant.d.ts +0 -57
  84. package/dist/gen/client/operations/createConversation.d.ts +0 -39
  85. package/dist/gen/client/operations/createEvent.d.ts +0 -79
  86. package/dist/gen/client/operations/createFile.d.ts +0 -65
  87. package/dist/gen/client/operations/createMessage.d.ts +0 -324
  88. package/dist/gen/client/operations/createUser.d.ts +0 -66
  89. package/dist/gen/client/operations/deleteConversation.d.ts +0 -22
  90. package/dist/gen/client/operations/deleteMessage.d.ts +0 -22
  91. package/dist/gen/client/operations/deleteUser.d.ts +0 -21
  92. package/dist/gen/client/operations/getConversation.d.ts +0 -36
  93. package/dist/gen/client/operations/getEvent.d.ts +0 -58
  94. package/dist/gen/client/operations/getMessage.d.ts +0 -182
  95. package/dist/gen/client/operations/getParticipant.d.ts +0 -54
  96. package/dist/gen/client/operations/getUser.d.ts +0 -52
  97. package/dist/gen/client/operations/listConversationMessages.d.ts +0 -186
  98. package/dist/gen/client/operations/listConversations.d.ts +0 -42
  99. package/dist/gen/client/operations/listParticipants.d.ts +0 -57
  100. package/dist/gen/client/operations/listenConversation.d.ts +0 -22
  101. package/dist/gen/client/operations/removeParticipant.d.ts +0 -23
  102. package/dist/gen/client/operations/updateUser.d.ts +0 -66
  103. package/dist/gen/client/to-axios.d.ts +0 -16
  104. package/dist/gen/signals/custom.t.d.ts +0 -8
  105. package/dist/gen/signals/custom.z.d.ts +0 -22
  106. package/dist/gen/signals/index.d.ts +0 -1035
  107. package/dist/gen/signals/messageCreated.t.d.ts +0 -163
  108. package/dist/gen/signals/messageCreated.z.d.ts +0 -930
  109. package/dist/gen/signals/typingStarted.t.d.ts +0 -6
  110. package/dist/gen/signals/typingStarted.z.d.ts +0 -22
  111. package/dist/gen/signals/typingStopped.t.d.ts +0 -4
  112. package/dist/gen/signals/typingStopped.z.d.ts +0 -12
  113. package/dist/gen/signals/webchatConfig.t.d.ts +0 -8
  114. package/dist/gen/signals/webchatConfig.z.d.ts +0 -22
  115. package/dist/gen/signals/webchatVisibility.t.d.ts +0 -6
  116. package/dist/gen/signals/webchatVisibility.z.d.ts +0 -22
  117. package/dist/get-client.d.ts +0 -7
  118. package/dist/hooks/index.d.ts +0 -5
  119. package/dist/hooks/useClient.d.ts +0 -6
  120. package/dist/hooks/useImageSize.d.ts +0 -2
  121. package/dist/hooks/useIsTyping.d.ts +0 -4
  122. package/dist/hooks/useRefresh.d.ts +0 -10
  123. package/dist/hooks/useWebchatClient.d.ts +0 -50
  124. package/dist/providers/ModalProvider.d.ts +0 -8
  125. package/dist/providers/StylesheetProvider.d.ts +0 -4
  126. package/dist/providers/index.d.ts +0 -2
  127. package/dist/schemas/configuration.d.ts +0 -157
  128. package/dist/schemas/index.d.ts +0 -3
  129. package/dist/schemas/init.d.ts +0 -8487
  130. package/dist/schemas/theme.d.ts +0 -4358
  131. package/dist/stores/composerFileStore.d.ts +0 -21
  132. package/dist/stores/customComponentsStore.d.ts +0 -9
  133. package/dist/stores/index.d.ts +0 -5
  134. package/dist/stores/messageHistoryStore.d.ts +0 -20
  135. package/dist/stores/messagesStore.d.ts +0 -21
  136. package/dist/stores/userStore.d.ts +0 -32
  137. package/dist/stores/webchatStore.d.ts +0 -13
  138. package/dist/stories/Messages/Audio.stories.d.ts +0 -6
  139. package/dist/stories/Messages/Bloc.stories.d.ts +0 -6
  140. package/dist/stories/Messages/Card.stories.d.ts +0 -6
  141. package/dist/stories/Messages/Carousel.stories.d.ts +0 -6
  142. package/dist/stories/Messages/Choice.stories.d.ts +0 -6
  143. package/dist/stories/Messages/Custom.stories.d.ts +0 -12
  144. package/dist/stories/Messages/Dropdown.stories.d.ts +0 -6
  145. package/dist/stories/Messages/File.stories.d.ts +0 -6
  146. package/dist/stories/Messages/FileAttachmentCard.stories.d.ts +0 -6
  147. package/dist/stories/Messages/Image.stories.d.ts +0 -6
  148. package/dist/stories/Messages/Location.stories.d.ts +0 -6
  149. package/dist/stories/Messages/Text.stories.d.ts +0 -6
  150. package/dist/stories/Messages/Video.stories.d.ts +0 -6
  151. package/dist/styles/classes.d.ts +0 -410
  152. package/dist/styles/index.d.ts +0 -1
  153. package/dist/types/block-type.d.ts +0 -58
  154. package/dist/types/configuration.d.ts +0 -5
  155. package/dist/types/image.d.ts +0 -11
  156. package/dist/types/index.d.ts +0 -5
  157. package/dist/types/init.d.ts +0 -6
  158. package/dist/types/theme.d.ts +0 -7
  159. package/dist/utils/colors.d.ts +0 -21
  160. package/dist/utils/colors.test.d.ts +0 -1
  161. package/dist/utils/eventEmitter.d.ts +0 -12
  162. package/dist/utils/generateCSS.d.ts +0 -1
  163. package/dist/utils/hashStringToInt.d.ts +0 -1
  164. package/dist/utils/images.d.ts +0 -2
  165. package/dist/utils/index.d.ts +0 -7
  166. package/dist/utils/message.d.ts +0 -8
  167. package/dist/utils/message.test.d.ts +0 -1
  168. package/dist/utils/theme.d.ts +0 -2
@@ -1,1035 +0,0 @@
1
- import type { MessageCreated } from './messageCreated.t';
2
- import type { WebchatVisibility } from './webchatVisibility.t';
3
- import type { WebchatConfig } from './webchatConfig.t';
4
- import type { Custom } from './custom.t';
5
- import type { TypingStarted } from './typingStarted.t';
6
- import type { TypingStopped } from './typingStopped.t';
7
- export declare const json: {};
8
- export declare const zod: {
9
- messageCreated: import("zod").ZodObject<{
10
- type: import("zod").ZodLiteral<"message_created">;
11
- data: import("zod").ZodObject<{
12
- id: import("zod").ZodString;
13
- createdAt: import("zod").ZodString;
14
- payload: import("zod").ZodUnion<[import("zod").ZodObject<{
15
- audioUrl: import("zod").ZodString;
16
- type: import("zod").ZodLiteral<"audio">;
17
- }, "strip", import("zod").ZodTypeAny, {
18
- type: "audio";
19
- audioUrl: string;
20
- }, {
21
- type: "audio";
22
- audioUrl: string;
23
- }>, import("zod").ZodObject<{
24
- title: import("zod").ZodString;
25
- subtitle: import("zod").ZodOptional<import("zod").ZodString>;
26
- imageUrl: import("zod").ZodOptional<import("zod").ZodString>;
27
- actions: import("zod").ZodArray<import("zod").ZodObject<{
28
- action: import("zod").ZodEnum<["postback", "url", "say"]>;
29
- label: import("zod").ZodString;
30
- value: import("zod").ZodString;
31
- }, "strip", import("zod").ZodTypeAny, {
32
- action: "postback" | "url" | "say";
33
- label: string;
34
- value: string;
35
- }, {
36
- action: "postback" | "url" | "say";
37
- label: string;
38
- value: string;
39
- }>, "many">;
40
- type: import("zod").ZodLiteral<"card">;
41
- }, "strip", import("zod").ZodTypeAny, {
42
- type: "card";
43
- title: string;
44
- actions: {
45
- action: "postback" | "url" | "say";
46
- label: string;
47
- value: string;
48
- }[];
49
- subtitle?: string | undefined;
50
- imageUrl?: string | undefined;
51
- }, {
52
- type: "card";
53
- title: string;
54
- actions: {
55
- action: "postback" | "url" | "say";
56
- label: string;
57
- value: string;
58
- }[];
59
- subtitle?: string | undefined;
60
- imageUrl?: string | undefined;
61
- }>, import("zod").ZodObject<{
62
- items: import("zod").ZodArray<import("zod").ZodObject<{
63
- title: import("zod").ZodString;
64
- subtitle: import("zod").ZodOptional<import("zod").ZodString>;
65
- imageUrl: import("zod").ZodOptional<import("zod").ZodString>;
66
- actions: import("zod").ZodArray<import("zod").ZodObject<{
67
- action: import("zod").ZodEnum<["postback", "url", "say"]>;
68
- label: import("zod").ZodString;
69
- value: import("zod").ZodString;
70
- }, "strip", import("zod").ZodTypeAny, {
71
- action: "postback" | "url" | "say";
72
- label: string;
73
- value: string;
74
- }, {
75
- action: "postback" | "url" | "say";
76
- label: string;
77
- value: string;
78
- }>, "many">;
79
- }, "strip", import("zod").ZodTypeAny, {
80
- title: string;
81
- actions: {
82
- action: "postback" | "url" | "say";
83
- label: string;
84
- value: string;
85
- }[];
86
- subtitle?: string | undefined;
87
- imageUrl?: string | undefined;
88
- }, {
89
- title: string;
90
- actions: {
91
- action: "postback" | "url" | "say";
92
- label: string;
93
- value: string;
94
- }[];
95
- subtitle?: string | undefined;
96
- imageUrl?: string | undefined;
97
- }>, "many">;
98
- type: import("zod").ZodLiteral<"carousel">;
99
- }, "strip", import("zod").ZodTypeAny, {
100
- type: "carousel";
101
- items: {
102
- title: string;
103
- actions: {
104
- action: "postback" | "url" | "say";
105
- label: string;
106
- value: string;
107
- }[];
108
- subtitle?: string | undefined;
109
- imageUrl?: string | undefined;
110
- }[];
111
- }, {
112
- type: "carousel";
113
- items: {
114
- title: string;
115
- actions: {
116
- action: "postback" | "url" | "say";
117
- label: string;
118
- value: string;
119
- }[];
120
- subtitle?: string | undefined;
121
- imageUrl?: string | undefined;
122
- }[];
123
- }>, import("zod").ZodObject<{
124
- text: import("zod").ZodString;
125
- options: import("zod").ZodArray<import("zod").ZodObject<{
126
- label: import("zod").ZodString;
127
- value: import("zod").ZodString;
128
- }, "strip", import("zod").ZodTypeAny, {
129
- label: string;
130
- value: string;
131
- }, {
132
- label: string;
133
- value: string;
134
- }>, "many">;
135
- type: import("zod").ZodLiteral<"choice">;
136
- disableFreeText: import("zod").ZodOptional<import("zod").ZodBoolean>;
137
- }, "strip", import("zod").ZodTypeAny, {
138
- type: "choice";
139
- text: string;
140
- options: {
141
- label: string;
142
- value: string;
143
- }[];
144
- disableFreeText?: boolean | undefined;
145
- }, {
146
- type: "choice";
147
- text: string;
148
- options: {
149
- label: string;
150
- value: string;
151
- }[];
152
- disableFreeText?: boolean | undefined;
153
- }>, import("zod").ZodObject<{
154
- text: import("zod").ZodString;
155
- options: import("zod").ZodArray<import("zod").ZodObject<{
156
- label: import("zod").ZodString;
157
- value: import("zod").ZodString;
158
- }, "strip", import("zod").ZodTypeAny, {
159
- label: string;
160
- value: string;
161
- }, {
162
- label: string;
163
- value: string;
164
- }>, "many">;
165
- type: import("zod").ZodLiteral<"dropdown">;
166
- }, "strip", import("zod").ZodTypeAny, {
167
- type: "dropdown";
168
- text: string;
169
- options: {
170
- label: string;
171
- value: string;
172
- }[];
173
- }, {
174
- type: "dropdown";
175
- text: string;
176
- options: {
177
- label: string;
178
- value: string;
179
- }[];
180
- }>, import("zod").ZodObject<{
181
- fileUrl: import("zod").ZodString;
182
- title: import("zod").ZodOptional<import("zod").ZodString>;
183
- type: import("zod").ZodLiteral<"file">;
184
- }, "strip", import("zod").ZodTypeAny, {
185
- type: "file";
186
- fileUrl: string;
187
- title?: string | undefined;
188
- }, {
189
- type: "file";
190
- fileUrl: string;
191
- title?: string | undefined;
192
- }>, import("zod").ZodObject<{
193
- imageUrl: import("zod").ZodString;
194
- type: import("zod").ZodLiteral<"image">;
195
- }, "strip", import("zod").ZodTypeAny, {
196
- type: "image";
197
- imageUrl: string;
198
- }, {
199
- type: "image";
200
- imageUrl: string;
201
- }>, import("zod").ZodObject<{
202
- latitude: import("zod").ZodNumber;
203
- longitude: import("zod").ZodNumber;
204
- address: import("zod").ZodOptional<import("zod").ZodString>;
205
- title: import("zod").ZodOptional<import("zod").ZodString>;
206
- type: import("zod").ZodLiteral<"location">;
207
- }, "strip", import("zod").ZodTypeAny, {
208
- type: "location";
209
- latitude: number;
210
- longitude: number;
211
- address?: string | undefined;
212
- title?: string | undefined;
213
- }, {
214
- type: "location";
215
- latitude: number;
216
- longitude: number;
217
- address?: string | undefined;
218
- title?: string | undefined;
219
- }>, import("zod").ZodObject<{
220
- markdown: import("zod").ZodString;
221
- type: import("zod").ZodLiteral<"markdown">;
222
- }, "strip", import("zod").ZodTypeAny, {
223
- type: "markdown";
224
- markdown: string;
225
- }, {
226
- type: "markdown";
227
- markdown: string;
228
- }>, import("zod").ZodObject<{
229
- text: import("zod").ZodString;
230
- type: import("zod").ZodLiteral<"text">;
231
- }, "strip", import("zod").ZodTypeAny, {
232
- type: "text";
233
- text: string;
234
- }, {
235
- type: "text";
236
- text: string;
237
- }>, import("zod").ZodObject<{
238
- videoUrl: import("zod").ZodString;
239
- type: import("zod").ZodLiteral<"video">;
240
- }, "strip", import("zod").ZodTypeAny, {
241
- type: "video";
242
- videoUrl: string;
243
- }, {
244
- type: "video";
245
- videoUrl: string;
246
- }>, import("zod").ZodObject<{
247
- items: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodObject<{
248
- type: import("zod").ZodLiteral<"text">;
249
- payload: import("zod").ZodObject<{
250
- text: import("zod").ZodString;
251
- }, "strip", import("zod").ZodTypeAny, {
252
- text: string;
253
- }, {
254
- text: string;
255
- }>;
256
- }, "strip", import("zod").ZodTypeAny, {
257
- type: "text";
258
- payload: {
259
- text: string;
260
- };
261
- }, {
262
- type: "text";
263
- payload: {
264
- text: string;
265
- };
266
- }>, import("zod").ZodObject<{
267
- type: import("zod").ZodLiteral<"markdown">;
268
- payload: import("zod").ZodObject<{
269
- markdown: import("zod").ZodString;
270
- }, "strip", import("zod").ZodTypeAny, {
271
- markdown: string;
272
- }, {
273
- markdown: string;
274
- }>;
275
- }, "strip", import("zod").ZodTypeAny, {
276
- type: "markdown";
277
- payload: {
278
- markdown: string;
279
- };
280
- }, {
281
- type: "markdown";
282
- payload: {
283
- markdown: string;
284
- };
285
- }>, import("zod").ZodObject<{
286
- type: import("zod").ZodLiteral<"image">;
287
- payload: import("zod").ZodObject<{
288
- imageUrl: import("zod").ZodString;
289
- }, "strip", import("zod").ZodTypeAny, {
290
- imageUrl: string;
291
- }, {
292
- imageUrl: string;
293
- }>;
294
- }, "strip", import("zod").ZodTypeAny, {
295
- type: "image";
296
- payload: {
297
- imageUrl: string;
298
- };
299
- }, {
300
- type: "image";
301
- payload: {
302
- imageUrl: string;
303
- };
304
- }>, import("zod").ZodObject<{
305
- type: import("zod").ZodLiteral<"audio">;
306
- payload: import("zod").ZodObject<{
307
- audioUrl: import("zod").ZodString;
308
- }, "strip", import("zod").ZodTypeAny, {
309
- audioUrl: string;
310
- }, {
311
- audioUrl: string;
312
- }>;
313
- }, "strip", import("zod").ZodTypeAny, {
314
- type: "audio";
315
- payload: {
316
- audioUrl: string;
317
- };
318
- }, {
319
- type: "audio";
320
- payload: {
321
- audioUrl: string;
322
- };
323
- }>, import("zod").ZodObject<{
324
- type: import("zod").ZodLiteral<"video">;
325
- payload: import("zod").ZodObject<{
326
- videoUrl: import("zod").ZodString;
327
- }, "strip", import("zod").ZodTypeAny, {
328
- videoUrl: string;
329
- }, {
330
- videoUrl: string;
331
- }>;
332
- }, "strip", import("zod").ZodTypeAny, {
333
- type: "video";
334
- payload: {
335
- videoUrl: string;
336
- };
337
- }, {
338
- type: "video";
339
- payload: {
340
- videoUrl: string;
341
- };
342
- }>, import("zod").ZodObject<{
343
- type: import("zod").ZodLiteral<"file">;
344
- payload: import("zod").ZodObject<{
345
- fileUrl: import("zod").ZodString;
346
- title: import("zod").ZodOptional<import("zod").ZodString>;
347
- }, "strip", import("zod").ZodTypeAny, {
348
- fileUrl: string;
349
- title?: string | undefined;
350
- }, {
351
- fileUrl: string;
352
- title?: string | undefined;
353
- }>;
354
- }, "strip", import("zod").ZodTypeAny, {
355
- type: "file";
356
- payload: {
357
- fileUrl: string;
358
- title?: string | undefined;
359
- };
360
- }, {
361
- type: "file";
362
- payload: {
363
- fileUrl: string;
364
- title?: string | undefined;
365
- };
366
- }>, import("zod").ZodObject<{
367
- type: import("zod").ZodLiteral<"location">;
368
- payload: import("zod").ZodObject<{
369
- latitude: import("zod").ZodNumber;
370
- longitude: import("zod").ZodNumber;
371
- address: import("zod").ZodOptional<import("zod").ZodString>;
372
- title: import("zod").ZodOptional<import("zod").ZodString>;
373
- }, "strip", import("zod").ZodTypeAny, {
374
- latitude: number;
375
- longitude: number;
376
- address?: string | undefined;
377
- title?: string | undefined;
378
- }, {
379
- latitude: number;
380
- longitude: number;
381
- address?: string | undefined;
382
- title?: string | undefined;
383
- }>;
384
- }, "strip", import("zod").ZodTypeAny, {
385
- type: "location";
386
- payload: {
387
- latitude: number;
388
- longitude: number;
389
- address?: string | undefined;
390
- title?: string | undefined;
391
- };
392
- }, {
393
- type: "location";
394
- payload: {
395
- latitude: number;
396
- longitude: number;
397
- address?: string | undefined;
398
- title?: string | undefined;
399
- };
400
- }>]>, "many">;
401
- type: import("zod").ZodLiteral<"bloc">;
402
- }, "strip", import("zod").ZodTypeAny, {
403
- type: "bloc";
404
- items: ({
405
- type: "text";
406
- payload: {
407
- text: string;
408
- };
409
- } | {
410
- type: "markdown";
411
- payload: {
412
- markdown: string;
413
- };
414
- } | {
415
- type: "image";
416
- payload: {
417
- imageUrl: string;
418
- };
419
- } | {
420
- type: "audio";
421
- payload: {
422
- audioUrl: string;
423
- };
424
- } | {
425
- type: "video";
426
- payload: {
427
- videoUrl: string;
428
- };
429
- } | {
430
- type: "file";
431
- payload: {
432
- fileUrl: string;
433
- title?: string | undefined;
434
- };
435
- } | {
436
- type: "location";
437
- payload: {
438
- latitude: number;
439
- longitude: number;
440
- address?: string | undefined;
441
- title?: string | undefined;
442
- };
443
- })[];
444
- }, {
445
- type: "bloc";
446
- items: ({
447
- type: "text";
448
- payload: {
449
- text: string;
450
- };
451
- } | {
452
- type: "markdown";
453
- payload: {
454
- markdown: string;
455
- };
456
- } | {
457
- type: "image";
458
- payload: {
459
- imageUrl: string;
460
- };
461
- } | {
462
- type: "audio";
463
- payload: {
464
- audioUrl: string;
465
- };
466
- } | {
467
- type: "video";
468
- payload: {
469
- videoUrl: string;
470
- };
471
- } | {
472
- type: "file";
473
- payload: {
474
- fileUrl: string;
475
- title?: string | undefined;
476
- };
477
- } | {
478
- type: "location";
479
- payload: {
480
- latitude: number;
481
- longitude: number;
482
- address?: string | undefined;
483
- title?: string | undefined;
484
- };
485
- })[];
486
- }>]>;
487
- userId: import("zod").ZodString;
488
- conversationId: import("zod").ZodString;
489
- }, "strip", import("zod").ZodTypeAny, {
490
- payload: {
491
- type: "audio";
492
- audioUrl: string;
493
- } | {
494
- type: "card";
495
- title: string;
496
- actions: {
497
- action: "postback" | "url" | "say";
498
- label: string;
499
- value: string;
500
- }[];
501
- subtitle?: string | undefined;
502
- imageUrl?: string | undefined;
503
- } | {
504
- type: "carousel";
505
- items: {
506
- title: string;
507
- actions: {
508
- action: "postback" | "url" | "say";
509
- label: string;
510
- value: string;
511
- }[];
512
- subtitle?: string | undefined;
513
- imageUrl?: string | undefined;
514
- }[];
515
- } | {
516
- type: "choice";
517
- text: string;
518
- options: {
519
- label: string;
520
- value: string;
521
- }[];
522
- disableFreeText?: boolean | undefined;
523
- } | {
524
- type: "dropdown";
525
- text: string;
526
- options: {
527
- label: string;
528
- value: string;
529
- }[];
530
- } | {
531
- type: "file";
532
- fileUrl: string;
533
- title?: string | undefined;
534
- } | {
535
- type: "image";
536
- imageUrl: string;
537
- } | {
538
- type: "location";
539
- latitude: number;
540
- longitude: number;
541
- address?: string | undefined;
542
- title?: string | undefined;
543
- } | {
544
- type: "markdown";
545
- markdown: string;
546
- } | {
547
- type: "text";
548
- text: string;
549
- } | {
550
- type: "video";
551
- videoUrl: string;
552
- } | {
553
- type: "bloc";
554
- items: ({
555
- type: "text";
556
- payload: {
557
- text: string;
558
- };
559
- } | {
560
- type: "markdown";
561
- payload: {
562
- markdown: string;
563
- };
564
- } | {
565
- type: "image";
566
- payload: {
567
- imageUrl: string;
568
- };
569
- } | {
570
- type: "audio";
571
- payload: {
572
- audioUrl: string;
573
- };
574
- } | {
575
- type: "video";
576
- payload: {
577
- videoUrl: string;
578
- };
579
- } | {
580
- type: "file";
581
- payload: {
582
- fileUrl: string;
583
- title?: string | undefined;
584
- };
585
- } | {
586
- type: "location";
587
- payload: {
588
- latitude: number;
589
- longitude: number;
590
- address?: string | undefined;
591
- title?: string | undefined;
592
- };
593
- })[];
594
- };
595
- id: string;
596
- conversationId: string;
597
- userId: string;
598
- createdAt: string;
599
- }, {
600
- payload: {
601
- type: "audio";
602
- audioUrl: string;
603
- } | {
604
- type: "card";
605
- title: string;
606
- actions: {
607
- action: "postback" | "url" | "say";
608
- label: string;
609
- value: string;
610
- }[];
611
- subtitle?: string | undefined;
612
- imageUrl?: string | undefined;
613
- } | {
614
- type: "carousel";
615
- items: {
616
- title: string;
617
- actions: {
618
- action: "postback" | "url" | "say";
619
- label: string;
620
- value: string;
621
- }[];
622
- subtitle?: string | undefined;
623
- imageUrl?: string | undefined;
624
- }[];
625
- } | {
626
- type: "choice";
627
- text: string;
628
- options: {
629
- label: string;
630
- value: string;
631
- }[];
632
- disableFreeText?: boolean | undefined;
633
- } | {
634
- type: "dropdown";
635
- text: string;
636
- options: {
637
- label: string;
638
- value: string;
639
- }[];
640
- } | {
641
- type: "file";
642
- fileUrl: string;
643
- title?: string | undefined;
644
- } | {
645
- type: "image";
646
- imageUrl: string;
647
- } | {
648
- type: "location";
649
- latitude: number;
650
- longitude: number;
651
- address?: string | undefined;
652
- title?: string | undefined;
653
- } | {
654
- type: "markdown";
655
- markdown: string;
656
- } | {
657
- type: "text";
658
- text: string;
659
- } | {
660
- type: "video";
661
- videoUrl: string;
662
- } | {
663
- type: "bloc";
664
- items: ({
665
- type: "text";
666
- payload: {
667
- text: string;
668
- };
669
- } | {
670
- type: "markdown";
671
- payload: {
672
- markdown: string;
673
- };
674
- } | {
675
- type: "image";
676
- payload: {
677
- imageUrl: string;
678
- };
679
- } | {
680
- type: "audio";
681
- payload: {
682
- audioUrl: string;
683
- };
684
- } | {
685
- type: "video";
686
- payload: {
687
- videoUrl: string;
688
- };
689
- } | {
690
- type: "file";
691
- payload: {
692
- fileUrl: string;
693
- title?: string | undefined;
694
- };
695
- } | {
696
- type: "location";
697
- payload: {
698
- latitude: number;
699
- longitude: number;
700
- address?: string | undefined;
701
- title?: string | undefined;
702
- };
703
- })[];
704
- };
705
- id: string;
706
- conversationId: string;
707
- userId: string;
708
- createdAt: string;
709
- }>;
710
- }, "strip", import("zod").ZodTypeAny, {
711
- type: "message_created";
712
- data: {
713
- payload: {
714
- type: "audio";
715
- audioUrl: string;
716
- } | {
717
- type: "card";
718
- title: string;
719
- actions: {
720
- action: "postback" | "url" | "say";
721
- label: string;
722
- value: string;
723
- }[];
724
- subtitle?: string | undefined;
725
- imageUrl?: string | undefined;
726
- } | {
727
- type: "carousel";
728
- items: {
729
- title: string;
730
- actions: {
731
- action: "postback" | "url" | "say";
732
- label: string;
733
- value: string;
734
- }[];
735
- subtitle?: string | undefined;
736
- imageUrl?: string | undefined;
737
- }[];
738
- } | {
739
- type: "choice";
740
- text: string;
741
- options: {
742
- label: string;
743
- value: string;
744
- }[];
745
- disableFreeText?: boolean | undefined;
746
- } | {
747
- type: "dropdown";
748
- text: string;
749
- options: {
750
- label: string;
751
- value: string;
752
- }[];
753
- } | {
754
- type: "file";
755
- fileUrl: string;
756
- title?: string | undefined;
757
- } | {
758
- type: "image";
759
- imageUrl: string;
760
- } | {
761
- type: "location";
762
- latitude: number;
763
- longitude: number;
764
- address?: string | undefined;
765
- title?: string | undefined;
766
- } | {
767
- type: "markdown";
768
- markdown: string;
769
- } | {
770
- type: "text";
771
- text: string;
772
- } | {
773
- type: "video";
774
- videoUrl: string;
775
- } | {
776
- type: "bloc";
777
- items: ({
778
- type: "text";
779
- payload: {
780
- text: string;
781
- };
782
- } | {
783
- type: "markdown";
784
- payload: {
785
- markdown: string;
786
- };
787
- } | {
788
- type: "image";
789
- payload: {
790
- imageUrl: string;
791
- };
792
- } | {
793
- type: "audio";
794
- payload: {
795
- audioUrl: string;
796
- };
797
- } | {
798
- type: "video";
799
- payload: {
800
- videoUrl: string;
801
- };
802
- } | {
803
- type: "file";
804
- payload: {
805
- fileUrl: string;
806
- title?: string | undefined;
807
- };
808
- } | {
809
- type: "location";
810
- payload: {
811
- latitude: number;
812
- longitude: number;
813
- address?: string | undefined;
814
- title?: string | undefined;
815
- };
816
- })[];
817
- };
818
- id: string;
819
- conversationId: string;
820
- userId: string;
821
- createdAt: string;
822
- };
823
- }, {
824
- type: "message_created";
825
- data: {
826
- payload: {
827
- type: "audio";
828
- audioUrl: string;
829
- } | {
830
- type: "card";
831
- title: string;
832
- actions: {
833
- action: "postback" | "url" | "say";
834
- label: string;
835
- value: string;
836
- }[];
837
- subtitle?: string | undefined;
838
- imageUrl?: string | undefined;
839
- } | {
840
- type: "carousel";
841
- items: {
842
- title: string;
843
- actions: {
844
- action: "postback" | "url" | "say";
845
- label: string;
846
- value: string;
847
- }[];
848
- subtitle?: string | undefined;
849
- imageUrl?: string | undefined;
850
- }[];
851
- } | {
852
- type: "choice";
853
- text: string;
854
- options: {
855
- label: string;
856
- value: string;
857
- }[];
858
- disableFreeText?: boolean | undefined;
859
- } | {
860
- type: "dropdown";
861
- text: string;
862
- options: {
863
- label: string;
864
- value: string;
865
- }[];
866
- } | {
867
- type: "file";
868
- fileUrl: string;
869
- title?: string | undefined;
870
- } | {
871
- type: "image";
872
- imageUrl: string;
873
- } | {
874
- type: "location";
875
- latitude: number;
876
- longitude: number;
877
- address?: string | undefined;
878
- title?: string | undefined;
879
- } | {
880
- type: "markdown";
881
- markdown: string;
882
- } | {
883
- type: "text";
884
- text: string;
885
- } | {
886
- type: "video";
887
- videoUrl: string;
888
- } | {
889
- type: "bloc";
890
- items: ({
891
- type: "text";
892
- payload: {
893
- text: string;
894
- };
895
- } | {
896
- type: "markdown";
897
- payload: {
898
- markdown: string;
899
- };
900
- } | {
901
- type: "image";
902
- payload: {
903
- imageUrl: string;
904
- };
905
- } | {
906
- type: "audio";
907
- payload: {
908
- audioUrl: string;
909
- };
910
- } | {
911
- type: "video";
912
- payload: {
913
- videoUrl: string;
914
- };
915
- } | {
916
- type: "file";
917
- payload: {
918
- fileUrl: string;
919
- title?: string | undefined;
920
- };
921
- } | {
922
- type: "location";
923
- payload: {
924
- latitude: number;
925
- longitude: number;
926
- address?: string | undefined;
927
- title?: string | undefined;
928
- };
929
- })[];
930
- };
931
- id: string;
932
- conversationId: string;
933
- userId: string;
934
- createdAt: string;
935
- };
936
- }>;
937
- webchatVisibility: import("zod").ZodObject<{
938
- type: import("zod").ZodLiteral<"webchat_visibility">;
939
- data: import("zod").ZodObject<{
940
- visibility: import("zod").ZodUnion<[import("zod").ZodLiteral<"show">, import("zod").ZodLiteral<"hide">, import("zod").ZodLiteral<"toggle">]>;
941
- }, "strip", import("zod").ZodTypeAny, {
942
- visibility: "toggle" | "show" | "hide";
943
- }, {
944
- visibility: "toggle" | "show" | "hide";
945
- }>;
946
- }, "strip", import("zod").ZodTypeAny, {
947
- type: "webchat_visibility";
948
- data: {
949
- visibility: "toggle" | "show" | "hide";
950
- };
951
- }, {
952
- type: "webchat_visibility";
953
- data: {
954
- visibility: "toggle" | "show" | "hide";
955
- };
956
- }>;
957
- webchatConfig: import("zod").ZodObject<{
958
- type: import("zod").ZodLiteral<"webchat_config">;
959
- data: import("zod").ZodObject<{
960
- config: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodAny, import("zod").ZodNull]>>;
961
- }, "strip", import("zod").ZodTypeAny, {
962
- config: Record<string, any>;
963
- }, {
964
- config: Record<string, any>;
965
- }>;
966
- }, "strip", import("zod").ZodTypeAny, {
967
- type: "webchat_config";
968
- data: {
969
- config: Record<string, any>;
970
- };
971
- }, {
972
- type: "webchat_config";
973
- data: {
974
- config: Record<string, any>;
975
- };
976
- }>;
977
- custom: import("zod").ZodObject<{
978
- type: import("zod").ZodLiteral<"custom">;
979
- data: import("zod").ZodObject<{
980
- event: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodAny, import("zod").ZodNull]>>;
981
- }, "strip", import("zod").ZodTypeAny, {
982
- event: Record<string, any>;
983
- }, {
984
- event: Record<string, any>;
985
- }>;
986
- }, "strip", import("zod").ZodTypeAny, {
987
- type: "custom";
988
- data: {
989
- event: Record<string, any>;
990
- };
991
- }, {
992
- type: "custom";
993
- data: {
994
- event: Record<string, any>;
995
- };
996
- }>;
997
- typingStarted: import("zod").ZodObject<{
998
- type: import("zod").ZodLiteral<"typing_started">;
999
- data: import("zod").ZodObject<{
1000
- timeout: import("zod").ZodOptional<import("zod").ZodNumber>;
1001
- }, "strip", import("zod").ZodTypeAny, {
1002
- timeout?: number | undefined;
1003
- }, {
1004
- timeout?: number | undefined;
1005
- }>;
1006
- }, "strip", import("zod").ZodTypeAny, {
1007
- type: "typing_started";
1008
- data: {
1009
- timeout?: number | undefined;
1010
- };
1011
- }, {
1012
- type: "typing_started";
1013
- data: {
1014
- timeout?: number | undefined;
1015
- };
1016
- }>;
1017
- typingStopped: import("zod").ZodObject<{
1018
- type: import("zod").ZodLiteral<"typing_stopped">;
1019
- data: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodNever>;
1020
- }, "strip", import("zod").ZodTypeAny, {
1021
- type: "typing_stopped";
1022
- data: Record<string, never>;
1023
- }, {
1024
- type: "typing_stopped";
1025
- data: Record<string, never>;
1026
- }>;
1027
- };
1028
- export type Types = {
1029
- messageCreated: MessageCreated;
1030
- webchatVisibility: WebchatVisibility;
1031
- webchatConfig: WebchatConfig;
1032
- custom: Custom;
1033
- typingStarted: TypingStarted;
1034
- typingStopped: TypingStopped;
1035
- };