From 0950ca4ee6e7d7b50650baf9eb808525023c6e87 Mon Sep 17 00:00:00 2001 From: David Weedon Date: Tue, 17 Feb 2026 10:12:28 -0600 Subject: [PATCH] Update types to reflect BasicRoot widgets now being allowed as a thread item --- .changeset/real-coins-look.md | 5 +++++ packages/chatkit/types/index.d.ts | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changeset/real-coins-look.md 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; };