@xpert-ai/chatkit-types 0.20.2 → 0.21.0

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 +32 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1854,6 +1854,16 @@ export declare type GrayscaleOptions = {
1854
1854
  shade?: -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4;
1855
1855
  };
1856
1856
 
1857
+ /** HTTP 400 contract shared with Xpert's ChatGroupProjectRequiredError. No message was accepted. */
1858
+ export declare type GroupProjectRequiredError = {
1859
+ statusCode: 400;
1860
+ error: 'Bad Request';
1861
+ code: 'GROUP_PROJECT_REQUIRED';
1862
+ message: string;
1863
+ groupId: string;
1864
+ participantIds: string[];
1865
+ };
1866
+
1857
1867
  export declare type HeaderIcon = 'sidebar-left' | 'sidebar-right' | 'sidebar-open-left' | 'sidebar-open-right' | 'sidebar-open-left-alt' | 'sidebar-open-right-alt' | 'sidebar-floating-left' | 'sidebar-floating-right' | 'sidebar-floating-open-left' | 'sidebar-floating-open-right' | 'sidebar-collapse-left' | 'sidebar-collapse-right' | 'collapse-left' | 'collapse-right' | 'open-left' | 'open-right' | 'double-chevron-left' | 'double-chevron-right' | 'home' | 'home-alt' | 'back-small' | 'back-large' | 'expand-large' | 'collapse-large' | 'expand-small' | 'collapse-small' | 'star' | 'star-filled' | 'chat-temporary' | 'settings-cog' | 'grid' | 'dots-horizontal' | 'dots-vertical' | 'dots-horizontal-circle' | 'dots-vertical-circle' | 'menu' | 'menu-inverted' | 'hamburger' | 'compose' | 'light-mode' | 'dark-mode' | 'close';
1858
1868
 
1859
1869
  export declare const HITL_DECISION_TYPES: readonly ["approve", "edit", "reject", "respond"];
@@ -3118,6 +3128,8 @@ export declare type TMessageComponentWidgetData = {
3118
3128
 
3119
3129
  export declare type TMessageComponentWidgetItem = {
3120
3130
  name: string;
3131
+ /** Optional display-only provenance. Older clients may omit this footer. */
3132
+ presentation?: TWidgetPresentation;
3121
3133
  /**
3122
3134
  * Standard A2UI server-to-client messages. New widget messages should use
3123
3135
  * this flat protocol shape so the UI can build and isolate surfaces at render time.
@@ -3386,6 +3398,26 @@ export declare type TThreadGoalUpdatedEvent = {
3386
3398
  updatedAt: string;
3387
3399
  };
3388
3400
 
3401
+ /**
3402
+ * Passive provenance shown beside a Widget. Producers supply public, localized
3403
+ * copy only; never include credentials, query bindings or private execution IDs.
3404
+ * Renderers may collapse details and format the timestamp in the viewer's locale.
3405
+ * These fields neither grant access nor request an action or a fresh query.
3406
+ */
3407
+ export declare type TWidgetPresentation = {
3408
+ /** Short result qualification, for example completeness or freshness. */
3409
+ summary?: string;
3410
+ /** ISO 8601 instant with timezone; retained unchanged, displayed in local time. */
3411
+ timestamp?: string;
3412
+ /** Producer-localized label explaining what the timestamp represents. */
3413
+ timestampLabel?: string;
3414
+ /** Public supplementary facts rendered as plain text in an optional disclosure. */
3415
+ details?: Array<{
3416
+ label: string;
3417
+ value: string;
3418
+ }>;
3419
+ };
3420
+
3389
3421
  export declare type TXpertChatInterruptPatch = Pick<TInterruptCommand, 'agentKey' | 'toolCalls' | 'update'>;
3390
3422
 
3391
3423
  export declare type TXpertChatResumeDecision = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/chatkit-types",
3
- "version": "0.20.2",
3
+ "version": "0.21.0",
4
4
  "description": "Type definitions for the ChatKit.",
5
5
  "sideEffects": false,
6
6
  "type": "module",