@botpress/webchat 2.1.3 → 2.1.5

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 (33) hide show
  1. package/.turbo/turbo-build.log +9 -9
  2. package/dist/adapters/messaging-to-target.d.ts +12 -12
  3. package/dist/adapters/webchat-to-target.d.ts +6 -6
  4. package/dist/components/Block.d.ts +1 -1
  5. package/dist/gen/client/models.d.ts +19 -3
  6. package/dist/gen/client/operations/createEvent.d.ts +6 -6
  7. package/dist/gen/client/operations/createMessage.d.ts +32 -0
  8. package/dist/gen/client/operations/getEvent.d.ts +3 -3
  9. package/dist/gen/client/operations/getMessage.d.ts +16 -0
  10. package/dist/gen/client/operations/listConversationMessages.d.ts +16 -0
  11. package/dist/gen/signals/custom.j.d.ts +3 -24
  12. package/dist/gen/signals/custom.t.d.ts +0 -5
  13. package/dist/gen/signals/custom.z.d.ts +1 -1
  14. package/dist/gen/signals/index.d.ts +27 -592
  15. package/dist/gen/signals/messageCreated.j.d.ts +3 -501
  16. package/dist/gen/signals/messageCreated.t.d.ts +34 -5
  17. package/dist/gen/signals/messageCreated.z.d.ts +18 -18
  18. package/dist/gen/signals/webchatConfig.j.d.ts +3 -24
  19. package/dist/gen/signals/webchatConfig.t.d.ts +0 -5
  20. package/dist/gen/signals/webchatConfig.z.d.ts +1 -1
  21. package/dist/gen/signals/webchatVisibility.j.d.ts +3 -24
  22. package/dist/gen/signals/webchatVisibility.t.d.ts +0 -5
  23. package/dist/gen/signals/webchatVisibility.z.d.ts +1 -1
  24. package/dist/{index-d2d96fc2.js → index-ba8c56be.js} +31978 -31717
  25. package/dist/{index-2c165908.js → index-e890d9a1.js} +1 -1
  26. package/dist/index.d.ts +6 -0
  27. package/dist/index.js +19 -18
  28. package/dist/index.umd.cjs +182 -182
  29. package/dist/schemas/init.d.ts +14 -14
  30. package/dist/schemas/theme.d.ts +8 -8
  31. package/dist/stores/webchatStore.d.ts +5 -0
  32. package/dist/types/block-type.d.ts +1 -1
  33. package/package.json +1 -1
@@ -1,25 +1,25 @@
1
1
 
2
- > @botpress/webchat@2.1.3 build /home/runner/work/echo/echo/packages/webchat-frontend
2
+ > @botpress/webchat@2.1.5 build /home/runner/work/echo/echo/packages/webchat-frontend
3
3
  > vite build
4
4
 
5
5
  vite v4.4.11 building for production...
6
6
  transforming...
7
- [plugin:vite:resolve] Module "crypto" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/packages/webchat-frontend/src/gen/client/errors.ts". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
8
7
  [plugin:vite:resolve] Module "node:http" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@botpress+sdk@0.8.29_react@18.2.0/node_modules/@botpress/sdk/dist/index.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
9
8
  [plugin:vite:resolve] Module "util" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@botpress+sdk@0.8.29_react@18.2.0/node_modules/@botpress/sdk/dist/index.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
9
+ [plugin:vite:resolve] Module "crypto" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/packages/webchat-frontend/src/gen/client/errors.ts". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
10
10
  [plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@apidevtools+json-schema-ref-parser@11.6.1/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/url.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
11
11
  [plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@apidevtools+json-schema-ref-parser@11.6.1/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/convert-path-to-posix.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
12
12
  [plugin:vite:resolve] Module "util" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@jsdevtools+ono@7.1.3/node_modules/@jsdevtools/ono/esm/types.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
13
13
  ../../node_modules/.pnpm/@jsdevtools+ono@7.1.3/node_modules/@jsdevtools/ono/esm/types.js (1:9) "inspect" is not exported by "__vite-browser-external", imported by "../../node_modules/.pnpm/@jsdevtools+ono@7.1.3/node_modules/@jsdevtools/ono/esm/types.js".
14
- ✓ 2436 modules transformed.
14
+ ✓ 2442 modules transformed.
15
15
  rendering chunks...
16
16
  
17
17
  [vite:dts] Start generate declaration files...
18
18
  computing gzip size...
19
- [vite:dts] Declaration files built in 14940ms.
19
+ [vite:dts] Declaration files built in 14915ms.
20
20
  
21
- dist/index.js  1.17 kB │ gzip: 0.56 kB
22
- dist/index-2c165908.js  118.52 kB │ gzip: 31.78 kB
23
- dist/index-d2d96fc2.js 1,449.32 kB │ gzip: 360.67 kB
24
- dist/index.umd.cjs 1,082.68 kB │ gzip: 327.97 kB
25
- ✓ built in 24.72s
21
+ dist/index.js  1.20 kB │ gzip: 0.57 kB
22
+ dist/index-e890d9a1.js  118.52 kB │ gzip: 31.78 kB
23
+ dist/index-ba8c56be.js 1,457.41 kB │ gzip: 362.72 kB
24
+ dist/index.umd.cjs 1,088.68 kB │ gzip: 329.59 kB
25
+ ✓ built in 24.63s
@@ -5,8 +5,8 @@ export type MessagingToTargetAdapters = adapters.Adapter<adapters.messaging.Mess
5
5
  export declare const audioAdapter: ({ type, audio }: {
6
6
  type: "audio";
7
7
  audio: string;
8
- title?: string | undefined;
9
8
  className?: string | undefined;
9
+ title?: string | undefined;
10
10
  avatarUrl?: string | undefined;
11
11
  }) => {
12
12
  payload: {
@@ -15,8 +15,8 @@ export declare const audioAdapter: ({ type, audio }: {
15
15
  };
16
16
  };
17
17
  export declare const cardAdapter: (card: {
18
- title: string;
19
18
  type: "card";
19
+ title: string;
20
20
  actions: ({
21
21
  title: string;
22
22
  text: string;
@@ -31,8 +31,8 @@ export declare const cardAdapter: (card: {
31
31
  payload: string;
32
32
  })[];
33
33
  className?: string | undefined;
34
- image?: string | undefined;
35
34
  subtitle?: string | undefined;
35
+ image?: string | undefined;
36
36
  avatarUrl?: string | undefined;
37
37
  }) => {
38
38
  payload: WithBubble<target.ColumnMessage>;
@@ -40,8 +40,8 @@ export declare const cardAdapter: (card: {
40
40
  export declare const carouselAdapter: ({ items }: {
41
41
  type: "carousel";
42
42
  items: {
43
- title: string;
44
43
  type: "card";
44
+ title: string;
45
45
  actions: ({
46
46
  title: string;
47
47
  text: string;
@@ -56,8 +56,8 @@ export declare const carouselAdapter: ({ items }: {
56
56
  payload: string;
57
57
  })[];
58
58
  className?: string | undefined;
59
- image?: string | undefined;
60
59
  subtitle?: string | undefined;
60
+ image?: string | undefined;
61
61
  avatarUrl?: string | undefined;
62
62
  }[];
63
63
  className?: string | undefined;
@@ -72,8 +72,8 @@ export declare const choiceAdapter: (x: {
72
72
  type: "single-choice";
73
73
  text: string;
74
74
  choices: {
75
- title: string;
76
75
  value: string;
76
+ title: string;
77
77
  }[];
78
78
  className?: string | undefined;
79
79
  disableFreeText?: boolean | undefined;
@@ -83,14 +83,14 @@ export declare const choiceAdapter: (x: {
83
83
  payload: target.Message;
84
84
  };
85
85
  export declare const dropdownAdapter: (x: {
86
+ type: "dropdown";
86
87
  options: {
87
88
  value: string;
88
89
  label: string;
89
90
  }[];
90
- type: "dropdown";
91
91
  message?: string | undefined;
92
- text?: string | undefined;
93
92
  className?: string | undefined;
93
+ text?: string | undefined;
94
94
  markdown?: boolean | undefined;
95
95
  avatarUrl?: string | undefined;
96
96
  allowCreation?: boolean | undefined;
@@ -106,14 +106,14 @@ export declare const dropdownAdapter: (x: {
106
106
  export declare const fileAdapter: ({ file, ...props }: {
107
107
  type: "file";
108
108
  file: string;
109
- title?: string | undefined;
110
109
  className?: string | undefined;
110
+ title?: string | undefined;
111
111
  avatarUrl?: string | undefined;
112
112
  }) => {
113
113
  payload: {
114
114
  type: "file";
115
- title?: string | undefined;
116
115
  className?: string | undefined;
116
+ title?: string | undefined;
117
117
  avatarUrl?: string | undefined;
118
118
  url: string;
119
119
  };
@@ -133,8 +133,8 @@ export declare const locationAdapter: ({ type, latitude, longitude, title, addre
133
133
  type: "location";
134
134
  latitude: number;
135
135
  longitude: number;
136
- title?: string | undefined;
137
136
  className?: string | undefined;
137
+ title?: string | undefined;
138
138
  address?: string | undefined;
139
139
  avatarUrl?: string | undefined;
140
140
  }) => {
@@ -170,8 +170,8 @@ export declare const textAdapter: ({ type, text }: {
170
170
  export declare const videoAdapter: ({ type, video }: {
171
171
  type: "video";
172
172
  video: string;
173
- title?: string | undefined;
174
173
  className?: string | undefined;
174
+ title?: string | undefined;
175
175
  avatarUrl?: string | undefined;
176
176
  }) => {
177
177
  payload: {
@@ -12,8 +12,8 @@ export declare const audioAdapter: (webchatMessage: {
12
12
  };
13
13
  };
14
14
  export declare const cardAdapter: (webchatMessage: {
15
- title: string;
16
15
  type: "card";
16
+ title: string;
17
17
  actions: {
18
18
  value: string;
19
19
  action: "url" | "postback" | "say";
@@ -48,11 +48,11 @@ export declare const carouselAdapter: (webchatMessage: {
48
48
  };
49
49
  };
50
50
  export declare const choiceAdapter: (webchatMessage: {
51
+ type: "choice";
51
52
  options: {
52
53
  value: string;
53
54
  label: string;
54
55
  }[];
55
- type: "choice";
56
56
  text: string;
57
57
  className?: string | undefined;
58
58
  disableFreeText?: boolean | undefined;
@@ -61,11 +61,11 @@ export declare const choiceAdapter: (webchatMessage: {
61
61
  payload: target.Message;
62
62
  };
63
63
  export declare const dropdownAdapter: (webchatMessage: {
64
+ type: "dropdown";
64
65
  options: {
65
66
  value: string;
66
67
  label: string;
67
68
  }[];
68
- type: "dropdown";
69
69
  text: string;
70
70
  className?: string | undefined;
71
71
  }) => {
@@ -77,13 +77,13 @@ export declare const dropdownAdapter: (webchatMessage: {
77
77
  export declare const fileAdapter: (webchatMessage: {
78
78
  type: "file";
79
79
  fileUrl: string;
80
- title?: string | undefined;
81
80
  className?: string | undefined;
81
+ title?: string | undefined;
82
82
  }) => {
83
83
  payload: {
84
84
  type: "file";
85
- title?: string | undefined;
86
85
  className?: string | undefined;
86
+ title?: string | undefined;
87
87
  avatarUrl?: string | undefined;
88
88
  url: string;
89
89
  };
@@ -102,8 +102,8 @@ export declare const locationAdapter: (webchatMessage: {
102
102
  type: "location";
103
103
  latitude: number;
104
104
  longitude: number;
105
- title?: string | undefined;
106
105
  className?: string | undefined;
106
+ title?: string | undefined;
107
107
  address?: string | undefined;
108
108
  }) => {
109
109
  payload: {
@@ -3,5 +3,5 @@ import { BlockObjects, BlockType, CommonBlockProps } from '../types';
3
3
  type BlockProps<T extends BlockType> = CommonBlockProps & {
4
4
  block: BlockObjects[T];
5
5
  };
6
- export declare const Block: <T extends "text" | "image" | "button" | "audio" | "video" | "file" | "location" | "column" | "row" | "bubble" | "carousel" | "dropdown">({ block, styles, ...props }: BlockProps<T>) => JSX.Element;
6
+ export declare const Block: <T extends "audio" | "carousel" | "text" | "dropdown" | "file" | "image" | "location" | "video" | "bubble" | "button" | "column" | "row">({ block, styles, ...props }: BlockProps<T>) => JSX.Element;
7
7
  export {};
@@ -65,6 +65,7 @@ export interface Message {
65
65
  */
66
66
  className?: string;
67
67
  type: "audio";
68
+ [k: string]: any;
68
69
  } | {
69
70
  title: string;
70
71
  subtitle?: string;
@@ -73,12 +74,14 @@ export interface Message {
73
74
  action: "postback" | "url" | "say";
74
75
  label: string;
75
76
  value: string;
77
+ [k: string]: any;
76
78
  }[];
77
79
  type: "card";
78
80
  /**
79
81
  * CSS className to apply to the message
80
82
  */
81
83
  className?: string;
84
+ [k: string]: any;
82
85
  } | {
83
86
  items: {
84
87
  title: string;
@@ -88,22 +91,26 @@ export interface Message {
88
91
  action: "postback" | "url" | "say";
89
92
  label: string;
90
93
  value: string;
94
+ [k: string]: any;
91
95
  }[];
92
96
  /**
93
97
  * CSS className to apply to the message
94
98
  */
95
99
  className?: string;
100
+ [k: string]: any;
96
101
  }[];
97
102
  /**
98
103
  * CSS className to apply to the message
99
104
  */
100
105
  className?: string;
101
106
  type: "carousel";
107
+ [k: string]: any;
102
108
  } | {
103
109
  text: string;
104
110
  options: {
105
111
  label: string;
106
112
  value: string;
113
+ [k: string]: any;
107
114
  }[];
108
115
  /**
109
116
  * CSS className to apply to the message
@@ -111,17 +118,20 @@ export interface Message {
111
118
  className?: string;
112
119
  type: "choice";
113
120
  disableFreeText?: boolean;
121
+ [k: string]: any;
114
122
  } | {
115
123
  text: string;
116
124
  options: {
117
125
  label: string;
118
126
  value: string;
127
+ [k: string]: any;
119
128
  }[];
120
129
  /**
121
130
  * CSS className to apply to the message
122
131
  */
123
132
  className?: string;
124
133
  type: "dropdown";
134
+ [k: string]: any;
125
135
  } | {
126
136
  fileUrl: string;
127
137
  title?: string;
@@ -130,6 +140,7 @@ export interface Message {
130
140
  */
131
141
  className?: string;
132
142
  type: "file";
143
+ [k: string]: any;
133
144
  } | {
134
145
  imageUrl: string;
135
146
  /**
@@ -137,6 +148,7 @@ export interface Message {
137
148
  */
138
149
  className?: string;
139
150
  type: "image";
151
+ [k: string]: any;
140
152
  } | {
141
153
  latitude: number;
142
154
  longitude: number;
@@ -147,6 +159,7 @@ export interface Message {
147
159
  */
148
160
  className?: string;
149
161
  type: "location";
162
+ [k: string]: any;
150
163
  } | {
151
164
  markdown: string;
152
165
  /**
@@ -154,6 +167,7 @@ export interface Message {
154
167
  */
155
168
  className?: string;
156
169
  type: "markdown";
170
+ [k: string]: any;
157
171
  } | {
158
172
  text: string;
159
173
  /**
@@ -161,6 +175,7 @@ export interface Message {
161
175
  */
162
176
  className?: string;
163
177
  type: "text";
178
+ [k: string]: any;
164
179
  } | {
165
180
  videoUrl: string;
166
181
  /**
@@ -168,6 +183,7 @@ export interface Message {
168
183
  */
169
184
  className?: string;
170
185
  type: "video";
186
+ [k: string]: any;
171
187
  };
172
188
  /**
173
189
  * ID of the [User](#schema_user)
@@ -193,10 +209,9 @@ export interface Event {
193
209
  payload: {
194
210
  type: "custom";
195
211
  data: {
196
- [k: string]: {
197
- [k: string]: any;
198
- };
212
+ [k: string]: any;
199
213
  };
214
+ [k: string]: any;
200
215
  } | {
201
216
  type: "conversation_started";
202
217
  data: {
@@ -204,6 +219,7 @@ export interface Event {
204
219
  [k: string]: any;
205
220
  };
206
221
  };
222
+ [k: string]: any;
207
223
  };
208
224
  /**
209
225
  * ID of the [Conversation](#schema_conversation).
@@ -12,10 +12,9 @@ export interface CreateEventRequestBody {
12
12
  payload: {
13
13
  type: "custom";
14
14
  data: {
15
- [k: string]: {
16
- [k: string]: any;
17
- };
15
+ [k: string]: any;
18
16
  };
17
+ [k: string]: any;
19
18
  } | {
20
19
  type: "conversation_started";
21
20
  data: {
@@ -23,6 +22,7 @@ export interface CreateEventRequestBody {
23
22
  [k: string]: any;
24
23
  };
25
24
  };
25
+ [k: string]: any;
26
26
  };
27
27
  /**
28
28
  * ID of the [Conversation](#schema_conversation)
@@ -55,10 +55,9 @@ export interface CreateEventResponse {
55
55
  payload: {
56
56
  type: "custom";
57
57
  data: {
58
- [k: string]: {
59
- [k: string]: any;
60
- };
58
+ [k: string]: any;
61
59
  };
60
+ [k: string]: any;
62
61
  } | {
63
62
  type: "conversation_started";
64
63
  data: {
@@ -66,6 +65,7 @@ export interface CreateEventResponse {
66
65
  [k: string]: any;
67
66
  };
68
67
  };
68
+ [k: string]: any;
69
69
  };
70
70
  /**
71
71
  * ID of the [Conversation](#schema_conversation).
@@ -16,6 +16,7 @@ export interface CreateMessageRequestBody {
16
16
  */
17
17
  className?: string;
18
18
  type: "audio";
19
+ [k: string]: any;
19
20
  } | {
20
21
  title: string;
21
22
  subtitle?: string;
@@ -24,12 +25,14 @@ export interface CreateMessageRequestBody {
24
25
  action: "postback" | "url" | "say";
25
26
  label: string;
26
27
  value: string;
28
+ [k: string]: any;
27
29
  }[];
28
30
  type: "card";
29
31
  /**
30
32
  * CSS className to apply to the message
31
33
  */
32
34
  className?: string;
35
+ [k: string]: any;
33
36
  } | {
34
37
  items: {
35
38
  title: string;
@@ -39,22 +42,26 @@ export interface CreateMessageRequestBody {
39
42
  action: "postback" | "url" | "say";
40
43
  label: string;
41
44
  value: string;
45
+ [k: string]: any;
42
46
  }[];
43
47
  /**
44
48
  * CSS className to apply to the message
45
49
  */
46
50
  className?: string;
51
+ [k: string]: any;
47
52
  }[];
48
53
  /**
49
54
  * CSS className to apply to the message
50
55
  */
51
56
  className?: string;
52
57
  type: "carousel";
58
+ [k: string]: any;
53
59
  } | {
54
60
  text: string;
55
61
  options: {
56
62
  label: string;
57
63
  value: string;
64
+ [k: string]: any;
58
65
  }[];
59
66
  /**
60
67
  * CSS className to apply to the message
@@ -62,17 +69,20 @@ export interface CreateMessageRequestBody {
62
69
  className?: string;
63
70
  type: "choice";
64
71
  disableFreeText?: boolean;
72
+ [k: string]: any;
65
73
  } | {
66
74
  text: string;
67
75
  options: {
68
76
  label: string;
69
77
  value: string;
78
+ [k: string]: any;
70
79
  }[];
71
80
  /**
72
81
  * CSS className to apply to the message
73
82
  */
74
83
  className?: string;
75
84
  type: "dropdown";
85
+ [k: string]: any;
76
86
  } | {
77
87
  fileUrl: string;
78
88
  title?: string;
@@ -81,6 +91,7 @@ export interface CreateMessageRequestBody {
81
91
  */
82
92
  className?: string;
83
93
  type: "file";
94
+ [k: string]: any;
84
95
  } | {
85
96
  imageUrl: string;
86
97
  /**
@@ -88,6 +99,7 @@ export interface CreateMessageRequestBody {
88
99
  */
89
100
  className?: string;
90
101
  type: "image";
102
+ [k: string]: any;
91
103
  } | {
92
104
  latitude: number;
93
105
  longitude: number;
@@ -98,6 +110,7 @@ export interface CreateMessageRequestBody {
98
110
  */
99
111
  className?: string;
100
112
  type: "location";
113
+ [k: string]: any;
101
114
  } | {
102
115
  markdown: string;
103
116
  /**
@@ -105,6 +118,7 @@ export interface CreateMessageRequestBody {
105
118
  */
106
119
  className?: string;
107
120
  type: "markdown";
121
+ [k: string]: any;
108
122
  } | {
109
123
  text: string;
110
124
  /**
@@ -112,6 +126,7 @@ export interface CreateMessageRequestBody {
112
126
  */
113
127
  className?: string;
114
128
  type: "text";
129
+ [k: string]: any;
115
130
  } | {
116
131
  videoUrl: string;
117
132
  /**
@@ -119,6 +134,7 @@ export interface CreateMessageRequestBody {
119
134
  */
120
135
  className?: string;
121
136
  type: "video";
137
+ [k: string]: any;
122
138
  };
123
139
  /**
124
140
  * ID of the [Conversation](#schema_conversation)
@@ -158,6 +174,7 @@ export interface CreateMessageResponse {
158
174
  */
159
175
  className?: string;
160
176
  type: "audio";
177
+ [k: string]: any;
161
178
  } | {
162
179
  title: string;
163
180
  subtitle?: string;
@@ -166,12 +183,14 @@ export interface CreateMessageResponse {
166
183
  action: "postback" | "url" | "say";
167
184
  label: string;
168
185
  value: string;
186
+ [k: string]: any;
169
187
  }[];
170
188
  type: "card";
171
189
  /**
172
190
  * CSS className to apply to the message
173
191
  */
174
192
  className?: string;
193
+ [k: string]: any;
175
194
  } | {
176
195
  items: {
177
196
  title: string;
@@ -181,22 +200,26 @@ export interface CreateMessageResponse {
181
200
  action: "postback" | "url" | "say";
182
201
  label: string;
183
202
  value: string;
203
+ [k: string]: any;
184
204
  }[];
185
205
  /**
186
206
  * CSS className to apply to the message
187
207
  */
188
208
  className?: string;
209
+ [k: string]: any;
189
210
  }[];
190
211
  /**
191
212
  * CSS className to apply to the message
192
213
  */
193
214
  className?: string;
194
215
  type: "carousel";
216
+ [k: string]: any;
195
217
  } | {
196
218
  text: string;
197
219
  options: {
198
220
  label: string;
199
221
  value: string;
222
+ [k: string]: any;
200
223
  }[];
201
224
  /**
202
225
  * CSS className to apply to the message
@@ -204,17 +227,20 @@ export interface CreateMessageResponse {
204
227
  className?: string;
205
228
  type: "choice";
206
229
  disableFreeText?: boolean;
230
+ [k: string]: any;
207
231
  } | {
208
232
  text: string;
209
233
  options: {
210
234
  label: string;
211
235
  value: string;
236
+ [k: string]: any;
212
237
  }[];
213
238
  /**
214
239
  * CSS className to apply to the message
215
240
  */
216
241
  className?: string;
217
242
  type: "dropdown";
243
+ [k: string]: any;
218
244
  } | {
219
245
  fileUrl: string;
220
246
  title?: string;
@@ -223,6 +249,7 @@ export interface CreateMessageResponse {
223
249
  */
224
250
  className?: string;
225
251
  type: "file";
252
+ [k: string]: any;
226
253
  } | {
227
254
  imageUrl: string;
228
255
  /**
@@ -230,6 +257,7 @@ export interface CreateMessageResponse {
230
257
  */
231
258
  className?: string;
232
259
  type: "image";
260
+ [k: string]: any;
233
261
  } | {
234
262
  latitude: number;
235
263
  longitude: number;
@@ -240,6 +268,7 @@ export interface CreateMessageResponse {
240
268
  */
241
269
  className?: string;
242
270
  type: "location";
271
+ [k: string]: any;
243
272
  } | {
244
273
  markdown: string;
245
274
  /**
@@ -247,6 +276,7 @@ export interface CreateMessageResponse {
247
276
  */
248
277
  className?: string;
249
278
  type: "markdown";
279
+ [k: string]: any;
250
280
  } | {
251
281
  text: string;
252
282
  /**
@@ -254,6 +284,7 @@ export interface CreateMessageResponse {
254
284
  */
255
285
  className?: string;
256
286
  type: "text";
287
+ [k: string]: any;
257
288
  } | {
258
289
  videoUrl: string;
259
290
  /**
@@ -261,6 +292,7 @@ export interface CreateMessageResponse {
261
292
  */
262
293
  className?: string;
263
294
  type: "video";
295
+ [k: string]: any;
264
296
  };
265
297
  /**
266
298
  * ID of the [User](#schema_user)
@@ -34,10 +34,9 @@ export interface GetEventResponse {
34
34
  payload: {
35
35
  type: "custom";
36
36
  data: {
37
- [k: string]: {
38
- [k: string]: any;
39
- };
37
+ [k: string]: any;
40
38
  };
39
+ [k: string]: any;
41
40
  } | {
42
41
  type: "conversation_started";
43
42
  data: {
@@ -45,6 +44,7 @@ export interface GetEventResponse {
45
44
  [k: string]: any;
46
45
  };
47
46
  };
47
+ [k: string]: any;
48
48
  };
49
49
  /**
50
50
  * ID of the [Conversation](#schema_conversation).