@xpert-ai/chatkit-types 0.20.3 → 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 +22 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -3128,6 +3128,8 @@ export declare type TMessageComponentWidgetData = {
3128
3128
 
3129
3129
  export declare type TMessageComponentWidgetItem = {
3130
3130
  name: string;
3131
+ /** Optional display-only provenance. Older clients may omit this footer. */
3132
+ presentation?: TWidgetPresentation;
3131
3133
  /**
3132
3134
  * Standard A2UI server-to-client messages. New widget messages should use
3133
3135
  * this flat protocol shape so the UI can build and isolate surfaces at render time.
@@ -3396,6 +3398,26 @@ export declare type TThreadGoalUpdatedEvent = {
3396
3398
  updatedAt: string;
3397
3399
  };
3398
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
+
3399
3421
  export declare type TXpertChatInterruptPatch = Pick<TInterruptCommand, 'agentKey' | 'toolCalls' | 'update'>;
3400
3422
 
3401
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.3",
3
+ "version": "0.21.0",
4
4
  "description": "Type definitions for the ChatKit.",
5
5
  "sideEffects": false,
6
6
  "type": "module",