@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.
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 +11301 -10261
  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,930 +0,0 @@
1
- import { z } from "zod";
2
- declare const _default: z.ZodObject<{
3
- type: z.ZodLiteral<"message_created">;
4
- data: z.ZodObject<{
5
- id: z.ZodString;
6
- createdAt: z.ZodString;
7
- payload: z.ZodUnion<[z.ZodObject<{
8
- audioUrl: z.ZodString;
9
- type: z.ZodLiteral<"audio">;
10
- }, "strip", z.ZodTypeAny, {
11
- type: "audio";
12
- audioUrl: string;
13
- }, {
14
- type: "audio";
15
- audioUrl: string;
16
- }>, z.ZodObject<{
17
- title: z.ZodString;
18
- subtitle: z.ZodOptional<z.ZodString>;
19
- imageUrl: z.ZodOptional<z.ZodString>;
20
- actions: z.ZodArray<z.ZodObject<{
21
- action: z.ZodEnum<["postback", "url", "say"]>;
22
- label: z.ZodString;
23
- value: z.ZodString;
24
- }, "strip", z.ZodTypeAny, {
25
- action: "postback" | "url" | "say";
26
- label: string;
27
- value: string;
28
- }, {
29
- action: "postback" | "url" | "say";
30
- label: string;
31
- value: string;
32
- }>, "many">;
33
- type: z.ZodLiteral<"card">;
34
- }, "strip", z.ZodTypeAny, {
35
- type: "card";
36
- title: string;
37
- actions: {
38
- action: "postback" | "url" | "say";
39
- label: string;
40
- value: string;
41
- }[];
42
- subtitle?: string | undefined;
43
- imageUrl?: string | undefined;
44
- }, {
45
- type: "card";
46
- title: string;
47
- actions: {
48
- action: "postback" | "url" | "say";
49
- label: string;
50
- value: string;
51
- }[];
52
- subtitle?: string | undefined;
53
- imageUrl?: string | undefined;
54
- }>, z.ZodObject<{
55
- items: z.ZodArray<z.ZodObject<{
56
- title: z.ZodString;
57
- subtitle: z.ZodOptional<z.ZodString>;
58
- imageUrl: z.ZodOptional<z.ZodString>;
59
- actions: z.ZodArray<z.ZodObject<{
60
- action: z.ZodEnum<["postback", "url", "say"]>;
61
- label: z.ZodString;
62
- value: z.ZodString;
63
- }, "strip", z.ZodTypeAny, {
64
- action: "postback" | "url" | "say";
65
- label: string;
66
- value: string;
67
- }, {
68
- action: "postback" | "url" | "say";
69
- label: string;
70
- value: string;
71
- }>, "many">;
72
- }, "strip", z.ZodTypeAny, {
73
- title: string;
74
- actions: {
75
- action: "postback" | "url" | "say";
76
- label: string;
77
- value: string;
78
- }[];
79
- subtitle?: string | undefined;
80
- imageUrl?: string | undefined;
81
- }, {
82
- title: string;
83
- actions: {
84
- action: "postback" | "url" | "say";
85
- label: string;
86
- value: string;
87
- }[];
88
- subtitle?: string | undefined;
89
- imageUrl?: string | undefined;
90
- }>, "many">;
91
- type: z.ZodLiteral<"carousel">;
92
- }, "strip", z.ZodTypeAny, {
93
- type: "carousel";
94
- items: {
95
- title: string;
96
- actions: {
97
- action: "postback" | "url" | "say";
98
- label: string;
99
- value: string;
100
- }[];
101
- subtitle?: string | undefined;
102
- imageUrl?: string | undefined;
103
- }[];
104
- }, {
105
- type: "carousel";
106
- items: {
107
- title: string;
108
- actions: {
109
- action: "postback" | "url" | "say";
110
- label: string;
111
- value: string;
112
- }[];
113
- subtitle?: string | undefined;
114
- imageUrl?: string | undefined;
115
- }[];
116
- }>, z.ZodObject<{
117
- text: z.ZodString;
118
- options: z.ZodArray<z.ZodObject<{
119
- label: z.ZodString;
120
- value: z.ZodString;
121
- }, "strip", z.ZodTypeAny, {
122
- label: string;
123
- value: string;
124
- }, {
125
- label: string;
126
- value: string;
127
- }>, "many">;
128
- type: z.ZodLiteral<"choice">;
129
- disableFreeText: z.ZodOptional<z.ZodBoolean>;
130
- }, "strip", z.ZodTypeAny, {
131
- type: "choice";
132
- text: string;
133
- options: {
134
- label: string;
135
- value: string;
136
- }[];
137
- disableFreeText?: boolean | undefined;
138
- }, {
139
- type: "choice";
140
- text: string;
141
- options: {
142
- label: string;
143
- value: string;
144
- }[];
145
- disableFreeText?: boolean | undefined;
146
- }>, z.ZodObject<{
147
- text: z.ZodString;
148
- options: z.ZodArray<z.ZodObject<{
149
- label: z.ZodString;
150
- value: z.ZodString;
151
- }, "strip", z.ZodTypeAny, {
152
- label: string;
153
- value: string;
154
- }, {
155
- label: string;
156
- value: string;
157
- }>, "many">;
158
- type: z.ZodLiteral<"dropdown">;
159
- }, "strip", z.ZodTypeAny, {
160
- type: "dropdown";
161
- text: string;
162
- options: {
163
- label: string;
164
- value: string;
165
- }[];
166
- }, {
167
- type: "dropdown";
168
- text: string;
169
- options: {
170
- label: string;
171
- value: string;
172
- }[];
173
- }>, z.ZodObject<{
174
- fileUrl: z.ZodString;
175
- title: z.ZodOptional<z.ZodString>;
176
- type: z.ZodLiteral<"file">;
177
- }, "strip", z.ZodTypeAny, {
178
- type: "file";
179
- fileUrl: string;
180
- title?: string | undefined;
181
- }, {
182
- type: "file";
183
- fileUrl: string;
184
- title?: string | undefined;
185
- }>, z.ZodObject<{
186
- imageUrl: z.ZodString;
187
- type: z.ZodLiteral<"image">;
188
- }, "strip", z.ZodTypeAny, {
189
- type: "image";
190
- imageUrl: string;
191
- }, {
192
- type: "image";
193
- imageUrl: string;
194
- }>, z.ZodObject<{
195
- latitude: z.ZodNumber;
196
- longitude: z.ZodNumber;
197
- address: z.ZodOptional<z.ZodString>;
198
- title: z.ZodOptional<z.ZodString>;
199
- type: z.ZodLiteral<"location">;
200
- }, "strip", z.ZodTypeAny, {
201
- type: "location";
202
- latitude: number;
203
- longitude: number;
204
- address?: string | undefined;
205
- title?: string | undefined;
206
- }, {
207
- type: "location";
208
- latitude: number;
209
- longitude: number;
210
- address?: string | undefined;
211
- title?: string | undefined;
212
- }>, z.ZodObject<{
213
- markdown: z.ZodString;
214
- type: z.ZodLiteral<"markdown">;
215
- }, "strip", z.ZodTypeAny, {
216
- type: "markdown";
217
- markdown: string;
218
- }, {
219
- type: "markdown";
220
- markdown: string;
221
- }>, z.ZodObject<{
222
- text: z.ZodString;
223
- type: z.ZodLiteral<"text">;
224
- }, "strip", z.ZodTypeAny, {
225
- type: "text";
226
- text: string;
227
- }, {
228
- type: "text";
229
- text: string;
230
- }>, z.ZodObject<{
231
- videoUrl: z.ZodString;
232
- type: z.ZodLiteral<"video">;
233
- }, "strip", z.ZodTypeAny, {
234
- type: "video";
235
- videoUrl: string;
236
- }, {
237
- type: "video";
238
- videoUrl: string;
239
- }>, z.ZodObject<{
240
- items: z.ZodArray<z.ZodUnion<[z.ZodObject<{
241
- type: z.ZodLiteral<"text">;
242
- payload: z.ZodObject<{
243
- text: z.ZodString;
244
- }, "strip", z.ZodTypeAny, {
245
- text: string;
246
- }, {
247
- text: string;
248
- }>;
249
- }, "strip", z.ZodTypeAny, {
250
- type: "text";
251
- payload: {
252
- text: string;
253
- };
254
- }, {
255
- type: "text";
256
- payload: {
257
- text: string;
258
- };
259
- }>, z.ZodObject<{
260
- type: z.ZodLiteral<"markdown">;
261
- payload: z.ZodObject<{
262
- markdown: z.ZodString;
263
- }, "strip", z.ZodTypeAny, {
264
- markdown: string;
265
- }, {
266
- markdown: string;
267
- }>;
268
- }, "strip", z.ZodTypeAny, {
269
- type: "markdown";
270
- payload: {
271
- markdown: string;
272
- };
273
- }, {
274
- type: "markdown";
275
- payload: {
276
- markdown: string;
277
- };
278
- }>, z.ZodObject<{
279
- type: z.ZodLiteral<"image">;
280
- payload: z.ZodObject<{
281
- imageUrl: z.ZodString;
282
- }, "strip", z.ZodTypeAny, {
283
- imageUrl: string;
284
- }, {
285
- imageUrl: string;
286
- }>;
287
- }, "strip", z.ZodTypeAny, {
288
- type: "image";
289
- payload: {
290
- imageUrl: string;
291
- };
292
- }, {
293
- type: "image";
294
- payload: {
295
- imageUrl: string;
296
- };
297
- }>, z.ZodObject<{
298
- type: z.ZodLiteral<"audio">;
299
- payload: z.ZodObject<{
300
- audioUrl: z.ZodString;
301
- }, "strip", z.ZodTypeAny, {
302
- audioUrl: string;
303
- }, {
304
- audioUrl: string;
305
- }>;
306
- }, "strip", z.ZodTypeAny, {
307
- type: "audio";
308
- payload: {
309
- audioUrl: string;
310
- };
311
- }, {
312
- type: "audio";
313
- payload: {
314
- audioUrl: string;
315
- };
316
- }>, z.ZodObject<{
317
- type: z.ZodLiteral<"video">;
318
- payload: z.ZodObject<{
319
- videoUrl: z.ZodString;
320
- }, "strip", z.ZodTypeAny, {
321
- videoUrl: string;
322
- }, {
323
- videoUrl: string;
324
- }>;
325
- }, "strip", z.ZodTypeAny, {
326
- type: "video";
327
- payload: {
328
- videoUrl: string;
329
- };
330
- }, {
331
- type: "video";
332
- payload: {
333
- videoUrl: string;
334
- };
335
- }>, z.ZodObject<{
336
- type: z.ZodLiteral<"file">;
337
- payload: z.ZodObject<{
338
- fileUrl: z.ZodString;
339
- title: z.ZodOptional<z.ZodString>;
340
- }, "strip", z.ZodTypeAny, {
341
- fileUrl: string;
342
- title?: string | undefined;
343
- }, {
344
- fileUrl: string;
345
- title?: string | undefined;
346
- }>;
347
- }, "strip", z.ZodTypeAny, {
348
- type: "file";
349
- payload: {
350
- fileUrl: string;
351
- title?: string | undefined;
352
- };
353
- }, {
354
- type: "file";
355
- payload: {
356
- fileUrl: string;
357
- title?: string | undefined;
358
- };
359
- }>, z.ZodObject<{
360
- type: z.ZodLiteral<"location">;
361
- payload: z.ZodObject<{
362
- latitude: z.ZodNumber;
363
- longitude: z.ZodNumber;
364
- address: z.ZodOptional<z.ZodString>;
365
- title: z.ZodOptional<z.ZodString>;
366
- }, "strip", z.ZodTypeAny, {
367
- latitude: number;
368
- longitude: number;
369
- address?: string | undefined;
370
- title?: string | undefined;
371
- }, {
372
- latitude: number;
373
- longitude: number;
374
- address?: string | undefined;
375
- title?: string | undefined;
376
- }>;
377
- }, "strip", z.ZodTypeAny, {
378
- type: "location";
379
- payload: {
380
- latitude: number;
381
- longitude: number;
382
- address?: string | undefined;
383
- title?: string | undefined;
384
- };
385
- }, {
386
- type: "location";
387
- payload: {
388
- latitude: number;
389
- longitude: number;
390
- address?: string | undefined;
391
- title?: string | undefined;
392
- };
393
- }>]>, "many">;
394
- type: z.ZodLiteral<"bloc">;
395
- }, "strip", z.ZodTypeAny, {
396
- type: "bloc";
397
- items: ({
398
- type: "text";
399
- payload: {
400
- text: string;
401
- };
402
- } | {
403
- type: "markdown";
404
- payload: {
405
- markdown: string;
406
- };
407
- } | {
408
- type: "image";
409
- payload: {
410
- imageUrl: string;
411
- };
412
- } | {
413
- type: "audio";
414
- payload: {
415
- audioUrl: string;
416
- };
417
- } | {
418
- type: "video";
419
- payload: {
420
- videoUrl: string;
421
- };
422
- } | {
423
- type: "file";
424
- payload: {
425
- fileUrl: string;
426
- title?: string | undefined;
427
- };
428
- } | {
429
- type: "location";
430
- payload: {
431
- latitude: number;
432
- longitude: number;
433
- address?: string | undefined;
434
- title?: string | undefined;
435
- };
436
- })[];
437
- }, {
438
- type: "bloc";
439
- items: ({
440
- type: "text";
441
- payload: {
442
- text: string;
443
- };
444
- } | {
445
- type: "markdown";
446
- payload: {
447
- markdown: string;
448
- };
449
- } | {
450
- type: "image";
451
- payload: {
452
- imageUrl: string;
453
- };
454
- } | {
455
- type: "audio";
456
- payload: {
457
- audioUrl: string;
458
- };
459
- } | {
460
- type: "video";
461
- payload: {
462
- videoUrl: string;
463
- };
464
- } | {
465
- type: "file";
466
- payload: {
467
- fileUrl: string;
468
- title?: string | undefined;
469
- };
470
- } | {
471
- type: "location";
472
- payload: {
473
- latitude: number;
474
- longitude: number;
475
- address?: string | undefined;
476
- title?: string | undefined;
477
- };
478
- })[];
479
- }>]>;
480
- userId: z.ZodString;
481
- conversationId: z.ZodString;
482
- }, "strip", z.ZodTypeAny, {
483
- payload: {
484
- type: "audio";
485
- audioUrl: string;
486
- } | {
487
- type: "card";
488
- title: string;
489
- actions: {
490
- action: "postback" | "url" | "say";
491
- label: string;
492
- value: string;
493
- }[];
494
- subtitle?: string | undefined;
495
- imageUrl?: string | undefined;
496
- } | {
497
- type: "carousel";
498
- items: {
499
- title: string;
500
- actions: {
501
- action: "postback" | "url" | "say";
502
- label: string;
503
- value: string;
504
- }[];
505
- subtitle?: string | undefined;
506
- imageUrl?: string | undefined;
507
- }[];
508
- } | {
509
- type: "choice";
510
- text: string;
511
- options: {
512
- label: string;
513
- value: string;
514
- }[];
515
- disableFreeText?: boolean | undefined;
516
- } | {
517
- type: "dropdown";
518
- text: string;
519
- options: {
520
- label: string;
521
- value: string;
522
- }[];
523
- } | {
524
- type: "file";
525
- fileUrl: string;
526
- title?: string | undefined;
527
- } | {
528
- type: "image";
529
- imageUrl: string;
530
- } | {
531
- type: "location";
532
- latitude: number;
533
- longitude: number;
534
- address?: string | undefined;
535
- title?: string | undefined;
536
- } | {
537
- type: "markdown";
538
- markdown: string;
539
- } | {
540
- type: "text";
541
- text: string;
542
- } | {
543
- type: "video";
544
- videoUrl: string;
545
- } | {
546
- type: "bloc";
547
- items: ({
548
- type: "text";
549
- payload: {
550
- text: string;
551
- };
552
- } | {
553
- type: "markdown";
554
- payload: {
555
- markdown: string;
556
- };
557
- } | {
558
- type: "image";
559
- payload: {
560
- imageUrl: string;
561
- };
562
- } | {
563
- type: "audio";
564
- payload: {
565
- audioUrl: string;
566
- };
567
- } | {
568
- type: "video";
569
- payload: {
570
- videoUrl: string;
571
- };
572
- } | {
573
- type: "file";
574
- payload: {
575
- fileUrl: string;
576
- title?: string | undefined;
577
- };
578
- } | {
579
- type: "location";
580
- payload: {
581
- latitude: number;
582
- longitude: number;
583
- address?: string | undefined;
584
- title?: string | undefined;
585
- };
586
- })[];
587
- };
588
- id: string;
589
- conversationId: string;
590
- userId: string;
591
- createdAt: string;
592
- }, {
593
- payload: {
594
- type: "audio";
595
- audioUrl: string;
596
- } | {
597
- type: "card";
598
- title: string;
599
- actions: {
600
- action: "postback" | "url" | "say";
601
- label: string;
602
- value: string;
603
- }[];
604
- subtitle?: string | undefined;
605
- imageUrl?: string | undefined;
606
- } | {
607
- type: "carousel";
608
- items: {
609
- title: string;
610
- actions: {
611
- action: "postback" | "url" | "say";
612
- label: string;
613
- value: string;
614
- }[];
615
- subtitle?: string | undefined;
616
- imageUrl?: string | undefined;
617
- }[];
618
- } | {
619
- type: "choice";
620
- text: string;
621
- options: {
622
- label: string;
623
- value: string;
624
- }[];
625
- disableFreeText?: boolean | undefined;
626
- } | {
627
- type: "dropdown";
628
- text: string;
629
- options: {
630
- label: string;
631
- value: string;
632
- }[];
633
- } | {
634
- type: "file";
635
- fileUrl: string;
636
- title?: string | undefined;
637
- } | {
638
- type: "image";
639
- imageUrl: string;
640
- } | {
641
- type: "location";
642
- latitude: number;
643
- longitude: number;
644
- address?: string | undefined;
645
- title?: string | undefined;
646
- } | {
647
- type: "markdown";
648
- markdown: string;
649
- } | {
650
- type: "text";
651
- text: string;
652
- } | {
653
- type: "video";
654
- videoUrl: string;
655
- } | {
656
- type: "bloc";
657
- items: ({
658
- type: "text";
659
- payload: {
660
- text: string;
661
- };
662
- } | {
663
- type: "markdown";
664
- payload: {
665
- markdown: string;
666
- };
667
- } | {
668
- type: "image";
669
- payload: {
670
- imageUrl: string;
671
- };
672
- } | {
673
- type: "audio";
674
- payload: {
675
- audioUrl: string;
676
- };
677
- } | {
678
- type: "video";
679
- payload: {
680
- videoUrl: string;
681
- };
682
- } | {
683
- type: "file";
684
- payload: {
685
- fileUrl: string;
686
- title?: string | undefined;
687
- };
688
- } | {
689
- type: "location";
690
- payload: {
691
- latitude: number;
692
- longitude: number;
693
- address?: string | undefined;
694
- title?: string | undefined;
695
- };
696
- })[];
697
- };
698
- id: string;
699
- conversationId: string;
700
- userId: string;
701
- createdAt: string;
702
- }>;
703
- }, "strip", z.ZodTypeAny, {
704
- type: "message_created";
705
- data: {
706
- payload: {
707
- type: "audio";
708
- audioUrl: string;
709
- } | {
710
- type: "card";
711
- title: string;
712
- actions: {
713
- action: "postback" | "url" | "say";
714
- label: string;
715
- value: string;
716
- }[];
717
- subtitle?: string | undefined;
718
- imageUrl?: string | undefined;
719
- } | {
720
- type: "carousel";
721
- items: {
722
- title: string;
723
- actions: {
724
- action: "postback" | "url" | "say";
725
- label: string;
726
- value: string;
727
- }[];
728
- subtitle?: string | undefined;
729
- imageUrl?: string | undefined;
730
- }[];
731
- } | {
732
- type: "choice";
733
- text: string;
734
- options: {
735
- label: string;
736
- value: string;
737
- }[];
738
- disableFreeText?: boolean | undefined;
739
- } | {
740
- type: "dropdown";
741
- text: string;
742
- options: {
743
- label: string;
744
- value: string;
745
- }[];
746
- } | {
747
- type: "file";
748
- fileUrl: string;
749
- title?: string | undefined;
750
- } | {
751
- type: "image";
752
- imageUrl: string;
753
- } | {
754
- type: "location";
755
- latitude: number;
756
- longitude: number;
757
- address?: string | undefined;
758
- title?: string | undefined;
759
- } | {
760
- type: "markdown";
761
- markdown: string;
762
- } | {
763
- type: "text";
764
- text: string;
765
- } | {
766
- type: "video";
767
- videoUrl: string;
768
- } | {
769
- type: "bloc";
770
- items: ({
771
- type: "text";
772
- payload: {
773
- text: string;
774
- };
775
- } | {
776
- type: "markdown";
777
- payload: {
778
- markdown: string;
779
- };
780
- } | {
781
- type: "image";
782
- payload: {
783
- imageUrl: string;
784
- };
785
- } | {
786
- type: "audio";
787
- payload: {
788
- audioUrl: string;
789
- };
790
- } | {
791
- type: "video";
792
- payload: {
793
- videoUrl: string;
794
- };
795
- } | {
796
- type: "file";
797
- payload: {
798
- fileUrl: string;
799
- title?: string | undefined;
800
- };
801
- } | {
802
- type: "location";
803
- payload: {
804
- latitude: number;
805
- longitude: number;
806
- address?: string | undefined;
807
- title?: string | undefined;
808
- };
809
- })[];
810
- };
811
- id: string;
812
- conversationId: string;
813
- userId: string;
814
- createdAt: string;
815
- };
816
- }, {
817
- type: "message_created";
818
- data: {
819
- payload: {
820
- type: "audio";
821
- audioUrl: string;
822
- } | {
823
- type: "card";
824
- title: string;
825
- actions: {
826
- action: "postback" | "url" | "say";
827
- label: string;
828
- value: string;
829
- }[];
830
- subtitle?: string | undefined;
831
- imageUrl?: string | undefined;
832
- } | {
833
- type: "carousel";
834
- items: {
835
- title: string;
836
- actions: {
837
- action: "postback" | "url" | "say";
838
- label: string;
839
- value: string;
840
- }[];
841
- subtitle?: string | undefined;
842
- imageUrl?: string | undefined;
843
- }[];
844
- } | {
845
- type: "choice";
846
- text: string;
847
- options: {
848
- label: string;
849
- value: string;
850
- }[];
851
- disableFreeText?: boolean | undefined;
852
- } | {
853
- type: "dropdown";
854
- text: string;
855
- options: {
856
- label: string;
857
- value: string;
858
- }[];
859
- } | {
860
- type: "file";
861
- fileUrl: string;
862
- title?: string | undefined;
863
- } | {
864
- type: "image";
865
- imageUrl: string;
866
- } | {
867
- type: "location";
868
- latitude: number;
869
- longitude: number;
870
- address?: string | undefined;
871
- title?: string | undefined;
872
- } | {
873
- type: "markdown";
874
- markdown: string;
875
- } | {
876
- type: "text";
877
- text: string;
878
- } | {
879
- type: "video";
880
- videoUrl: string;
881
- } | {
882
- type: "bloc";
883
- items: ({
884
- type: "text";
885
- payload: {
886
- text: string;
887
- };
888
- } | {
889
- type: "markdown";
890
- payload: {
891
- markdown: string;
892
- };
893
- } | {
894
- type: "image";
895
- payload: {
896
- imageUrl: string;
897
- };
898
- } | {
899
- type: "audio";
900
- payload: {
901
- audioUrl: string;
902
- };
903
- } | {
904
- type: "video";
905
- payload: {
906
- videoUrl: string;
907
- };
908
- } | {
909
- type: "file";
910
- payload: {
911
- fileUrl: string;
912
- title?: string | undefined;
913
- };
914
- } | {
915
- type: "location";
916
- payload: {
917
- latitude: number;
918
- longitude: number;
919
- address?: string | undefined;
920
- title?: string | undefined;
921
- };
922
- })[];
923
- };
924
- id: string;
925
- conversationId: string;
926
- userId: string;
927
- createdAt: string;
928
- };
929
- }>;
930
- export default _default;