We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b0a093 + 0950ca4 commit 42b70e3Copy full SHA for 42b70e3
.changeset/real-coins-look.md
@@ -0,0 +1,5 @@
1
+---
2
+'@openai/chatkit': minor
3
4
+
5
+ChatKit threads now support BasicRoot widgets, types updated to reflect this
packages/chatkit/types/index.d.ts
@@ -192,7 +192,10 @@ export type WidgetsOption = {
192
*/
193
onAction?: (
194
action: { type: string; payload?: Record<string, unknown> },
195
- widgetItem: { id: string; widget: Widgets.Card | Widgets.ListView },
+ widgetItem: {
196
+ id: string;
197
+ widget: Widgets.Card | Widgets.ListView | Widgets.BasicRoot;
198
+ },
199
) => Promise<void>;
200
};
201
0 commit comments