@xpert-ai/chatkit-types 0.4.6 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +28 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -424,6 +424,12 @@ export declare type ChatKitOptions = {
424
424
  * Message list quick navigation controls.
425
425
  */
426
426
  messageNavigation?: ChatKitMessageNavigationOptions;
427
+ /**
428
+ * Optional Xpert Remote Views workbench.
429
+ *
430
+ * @default disabled
431
+ */
432
+ workbench?: ChatKitWorkbenchOptions;
427
433
  /**
428
434
  * Optional animated pet companion rendered by the ChatKit web component over
429
435
  * the host page viewport.
@@ -815,6 +821,28 @@ export declare type ChatKitTheme = {
815
821
  };
816
822
  };
817
823
 
824
+ export declare type ChatKitWorkbenchClientCommandRequest = {
825
+ commandKey: string;
826
+ payload?: unknown;
827
+ hostType: 'agent';
828
+ hostId: string;
829
+ viewKey: string;
830
+ };
831
+
832
+ export declare type ChatKitWorkbenchOptions = {
833
+ /**
834
+ * Enables the right-side Xpert Remote Views workbench.
835
+ *
836
+ * @default false
837
+ */
838
+ enabled?: boolean;
839
+ /**
840
+ * Handles manifest-declared client commands that are not implemented by
841
+ * ChatKit itself.
842
+ */
843
+ onClientCommand?: (request: ChatKitWorkbenchClientCommandRequest) => unknown | Promise<unknown>;
844
+ };
845
+
818
846
  /**
819
847
  * https://js.langchain.com/docs/how_to/streaming/#event-reference
820
848
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/chatkit-types",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Type definitions for the ChatKit.",
5
5
  "sideEffects": false,
6
6
  "type": "module",