@unisphere/genie-types 1.31.1 → 1.32.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.
package/index.esm.js
CHANGED
|
@@ -1717,7 +1717,12 @@ const floaterVisualSettingsSchema = {
|
|
|
1717
1717
|
mode: modeSchema,
|
|
1718
1718
|
context: chatContextSchema,
|
|
1719
1719
|
customization: chatCustomizationSchema,
|
|
1720
|
-
dynamicVariables: dynamicVariablesSchema
|
|
1720
|
+
dynamicVariables: dynamicVariablesSchema,
|
|
1721
|
+
openingPosition: {
|
|
1722
|
+
type: 'enum',
|
|
1723
|
+
values: ['left', 'right'],
|
|
1724
|
+
optional: true
|
|
1725
|
+
}
|
|
1721
1726
|
}
|
|
1722
1727
|
};
|
|
1723
1728
|
const floaterCTAVisualSettingsSchema = {
|
|
@@ -1729,6 +1734,11 @@ const floaterCTAVisualSettingsSchema = {
|
|
|
1729
1734
|
values: ['bottom-right', 'bottom-center', 'bottom-left'],
|
|
1730
1735
|
optional: true
|
|
1731
1736
|
},
|
|
1737
|
+
openingPosition: {
|
|
1738
|
+
type: 'enum',
|
|
1739
|
+
values: ['left', 'right'],
|
|
1740
|
+
optional: true
|
|
1741
|
+
},
|
|
1732
1742
|
mode: modeSchema,
|
|
1733
1743
|
openByDefault: {
|
|
1734
1744
|
type: 'primitive',
|
|
@@ -3337,6 +3347,17 @@ const avatarRuntimeHeadFloaterVisualSettingsSchema = {
|
|
|
3337
3347
|
}
|
|
3338
3348
|
};
|
|
3339
3349
|
|
|
3350
|
+
const avatarRuntimeHeadlessVisualSettingsSchema = {
|
|
3351
|
+
type: 'object',
|
|
3352
|
+
properties: {
|
|
3353
|
+
schemaVersion: {
|
|
3354
|
+
type: 'literal',
|
|
3355
|
+
value: '1',
|
|
3356
|
+
optional: true
|
|
3357
|
+
}
|
|
3358
|
+
}
|
|
3359
|
+
};
|
|
3360
|
+
|
|
3340
3361
|
const blockVisualContextSchema = {
|
|
3341
3362
|
type: 'object',
|
|
3342
3363
|
optional: true,
|
|
@@ -3393,4 +3414,4 @@ const chatThreadRuntimeContainedVisualSettingsSchema = {
|
|
|
3393
3414
|
}
|
|
3394
3415
|
};
|
|
3395
3416
|
|
|
3396
|
-
export { AVATAR_DEFAULT_CAPABILITIES, AnswerModelEnum, AnswerTypeEnum, AvatarConnectionStatus, AvatarRuntimeName, CHAT_CONTEXT_TYPE, CHAT_CONTEXT_TYPE_GLOBAL, CHAT_DEFAULT_CAPABILITIES, ChatRuntimeName, ChatThreadRuntimeName, DeviceType, DisconnectReasons, SUPPORTED_LAYOUT_TYPES, agentModeSchema, avatarContainerModeSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeFloaterVisualSettingsSchema, avatarRuntimeHeadFloaterVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, chatContextSchema, chatCustomizationSchema, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, chatThreadRuntimeContainedVisualSettingsSchema, chatThreadRuntimeSettingsSchema, containedVisualSettingsSchema, dynamicVariablesSchema, floaterCTAVisualSettingsSchema, floaterVisualSettingsSchema, getAvatarDefaultCapabilities, getChatDefaultCapabilities, getResolvedRuntimeName, getResolvedWidgetName, getSourceUrlSchema, integrationsSchema, isAvatarConnectionProxyInternalType, pageVisualSettingsSchema, popupVisualSettingsSchema, resolveActiveContextType, schemaVersionSchema, shareUrlSchema, widgetName };
|
|
3417
|
+
export { AVATAR_DEFAULT_CAPABILITIES, AnswerModelEnum, AnswerTypeEnum, AvatarConnectionStatus, AvatarRuntimeName, CHAT_CONTEXT_TYPE, CHAT_CONTEXT_TYPE_GLOBAL, CHAT_DEFAULT_CAPABILITIES, ChatRuntimeName, ChatThreadRuntimeName, DeviceType, DisconnectReasons, SUPPORTED_LAYOUT_TYPES, agentModeSchema, avatarContainerModeSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeFloaterVisualSettingsSchema, avatarRuntimeHeadFloaterVisualSettingsSchema, avatarRuntimeHeadlessVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, chatContextSchema, chatCustomizationSchema, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, chatThreadRuntimeContainedVisualSettingsSchema, chatThreadRuntimeSettingsSchema, containedVisualSettingsSchema, dynamicVariablesSchema, floaterCTAVisualSettingsSchema, floaterVisualSettingsSchema, getAvatarDefaultCapabilities, getChatDefaultCapabilities, getResolvedRuntimeName, getResolvedWidgetName, getSourceUrlSchema, integrationsSchema, isAvatarConnectionProxyInternalType, pageVisualSettingsSchema, popupVisualSettingsSchema, resolveActiveContextType, schemaVersionSchema, shareUrlSchema, widgetName };
|
package/package.json
CHANGED
|
@@ -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
|
*/
|
|
@@ -123,12 +123,15 @@ export interface ContainedVisualSettings extends ScrollableVisualSettings, ModeC
|
|
|
123
123
|
}
|
|
124
124
|
export interface FloaterCTAVisualSettings extends ModeContextVisualSettings {
|
|
125
125
|
position?: 'bottom-right' | 'bottom-center' | 'bottom-left';
|
|
126
|
+
openingPosition?: 'left' | 'right';
|
|
126
127
|
openByDefault?: boolean;
|
|
127
128
|
type?: 'button';
|
|
128
129
|
text?: string;
|
|
129
130
|
showIcon?: boolean;
|
|
130
131
|
}
|
|
131
|
-
export
|
|
132
|
+
export interface FloaterVisualSettings extends ModeContextVisualSettings {
|
|
133
|
+
openingPosition?: 'left' | 'right';
|
|
134
|
+
}
|
|
132
135
|
export declare const floaterVisualSettingsSchema: ValidatorSchema;
|
|
133
136
|
export declare const floaterCTAVisualSettingsSchema: ValidatorSchema;
|
|
134
137
|
export declare const containedVisualSettingsSchema: ValidatorSchema;
|