@unisphere/genie-types 1.31.1 → 1.31.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/genie-types",
3
- "version": "1.31.1",
3
+ "version": "1.31.2",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -94,7 +94,7 @@ export type AgentKalturaContextData = {
94
94
  * Represents tool content displayed within avatar experiences, with different
95
95
  * states for loading, ready, and error conditions.
96
96
  */
97
- export type AvatarContentData<TSettings = any> = {
97
+ export type AvatarContentData<TSettings = any> = ({
98
98
  /** Unique content identifier */
99
99
  id: string;
100
100
  /** Associated thread ID */
@@ -119,7 +119,22 @@ export type AvatarContentData<TSettings = any> = {
119
119
  } | {
120
120
  /** Content status: error occurred */
121
121
  status: 'error';
122
- });
122
+ })) | {
123
+ /** Unique content identifier */
124
+ id: string;
125
+ /** Associated thread ID */
126
+ threadId?: string;
127
+ /** Associated message ID */
128
+ messageId?: string;
129
+ /** Optional new title for the content */
130
+ newTitle?: string;
131
+ /** Content type identifier: a general (non tool-specific) error */
132
+ type: 'error';
133
+ /** Optional error message content */
134
+ content?: string;
135
+ /** Whether to display the default error message instead of `content` */
136
+ shouldDisplayDefaultMessage?: boolean;
137
+ };
123
138
  /**
124
139
  * Current caption display state exposed to consumers.
125
140
  */