File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ const EVENT_HANDLER_MAP: {
2828 'chatkit.thread.load.start' : 'onThreadLoadStart' ,
2929 'chatkit.thread.load.end' : 'onThreadLoadEnd' ,
3030 'chatkit.ready' : 'onReady' ,
31+ 'chatkit.effect' : 'onEffect' ,
3132} ;
3233
3334const EVENT_NAMES = Object . keys ( EVENT_HANDLER_MAP ) as ( keyof ChatKitEvents ) [ ] ;
Original file line number Diff line number Diff line change @@ -928,6 +928,12 @@ export type ChatKitEvents = {
928928 /** Emitted when an error occurs. You should log these for monitoring and debugging. */
929929 'chatkit.error' : CustomEvent < { error : Error } > ;
930930
931+ /** Emitted when a fire-and-forget client effect is triggered. */
932+ 'chatkit.effect' : CustomEvent < {
933+ name : string ;
934+ data ?: Record < string , unknown > ;
935+ } > ;
936+
931937 /** Emitted when the assistant begins sending a response. */
932938 'chatkit.response.start' : CustomEvent < void > ;
933939
You can’t perform that action at this time.
0 commit comments