File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
docs/src/content/docs/quick-reference Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ const EVENT_HANDLER_MAP: {
3030 'chatkit.tool.change' : 'onToolChange' ,
3131 'chatkit.ready' : 'onReady' ,
3232 'chatkit.effect' : 'onEffect' ,
33+ 'chatkit.deeplink' : 'onDeeplink' ,
3334} ;
3435
3536const EVENT_NAMES = Object . keys ( EVENT_HANDLER_MAP ) as ( keyof ChatKitEvents ) [ ] ;
Original file line number Diff line number Diff line change @@ -1114,6 +1114,12 @@ export type ChatKitEvents = {
11141114 data ?: Record < string , unknown > ;
11151115 } > ;
11161116
1117+ /** Emitted when a chatkit-link:// deeplink is clicked. */
1118+ 'chatkit.deeplink' : CustomEvent < {
1119+ name : string ;
1120+ data ?: Record < string , unknown > ;
1121+ } > ;
1122+
11171123 /** Emitted when the assistant begins sending a response. */
11181124 'chatkit.response.start' : CustomEvent < void > ;
11191125
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ type UseChatKitOptions = ChatKitOptions &
2929 onError: (event: { error: Error }) => void;
3030 onLog: (event: { name: string; data?: Record<string, unknown> }) => void;
3131 onEffect: (event: { name: string; data?: Record<string, unknown> }) => void;
32+ onDeeplink: (event: { name: string; data?: Record<string, unknown> }) => void;
3233 }>;
3334` ` `
3435
You can’t perform that action at this time.
0 commit comments