diff --git a/.changeset/real-coins-look.md b/.changeset/real-coins-look.md new file mode 100644 index 0000000..7c610fa --- /dev/null +++ b/.changeset/real-coins-look.md @@ -0,0 +1,5 @@ +--- +'@openai/chatkit': minor +--- + +ChatKit threads now support BasicRoot widgets, types updated to reflect this diff --git a/packages/chatkit/types/index.d.ts b/packages/chatkit/types/index.d.ts index b1c9c84..0b56e3e 100644 --- a/packages/chatkit/types/index.d.ts +++ b/packages/chatkit/types/index.d.ts @@ -192,7 +192,10 @@ export type WidgetsOption = { */ onAction?: ( action: { type: string; payload?: Record }, - widgetItem: { id: string; widget: Widgets.Card | Widgets.ListView }, + widgetItem: { + id: string; + widget: Widgets.Card | Widgets.ListView | Widgets.BasicRoot; + }, ) => Promise; };