@xpert-ai/chatkit-types 0.0.13 → 0.0.14

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 +17 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -246,6 +246,11 @@ export declare type ChatKitOptions = {
246
246
  */
247
247
  frameUrl?: string;
248
248
  api: CustomApiConfig | HostedApiConfig;
249
+ /**
250
+ * Default request values that should be injected into every user message sent
251
+ * from this ChatKit instance.
252
+ */
253
+ request?: ChatKitRequestOptions;
249
254
  /**
250
255
  * Locale override for ChatKit UI. If not provided, the browser's locale
251
256
  * will be used. If the locale is not supported, will fall back to English.
@@ -426,6 +431,18 @@ export declare type ChatKitOptions = {
426
431
  };
427
432
  };
428
433
 
434
+ export declare type ChatKitRequestOptions = {
435
+ /**
436
+ * Custom graph state merged into every submitted message request.
437
+ * The active user input is always written into `state.human.input`.
438
+ */
439
+ state?: Record<string, any>;
440
+ /**
441
+ * Additional stream context merged into every submitted message request.
442
+ */
443
+ context?: Record<string, unknown>;
444
+ };
445
+
429
446
  export declare type ChatKitTheme = {
430
447
  /**
431
448
  * The color scheme to use for the ChatKit UI.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/chatkit-types",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "Type definitions for the ChatKit.",
5
5
  "sideEffects": false,
6
6
  "type": "module",