@unisphere/genie-types 1.39.5 → 1.39.7-moe.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 +6 -1
- package/package.json +2 -2
- package/src/lib/avatar-runtime/avatar-service-types.d.ts +7 -0
- package/src/lib/avatar-runtime/chat-types.d.ts +1 -0
- package/src/lib/avatar-runtime/runtime-types.d.ts +6 -0
- package/src/lib/avatar-runtime/visual-bridge-types.d.ts +8 -2
- package/src/lib/chat-customizations-types.d.ts +5 -1
package/index.esm.js
CHANGED
|
@@ -2229,6 +2229,11 @@ const featuresSchema = {
|
|
|
2229
2229
|
properties: {},
|
|
2230
2230
|
allowUnknownProperties: true,
|
|
2231
2231
|
optional: true
|
|
2232
|
+
},
|
|
2233
|
+
interactiveClipAutoSwitch: {
|
|
2234
|
+
type: 'primitive',
|
|
2235
|
+
value: 'boolean',
|
|
2236
|
+
optional: true
|
|
2232
2237
|
}
|
|
2233
2238
|
}
|
|
2234
2239
|
};
|
|
@@ -3464,7 +3469,7 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
3464
3469
|
|
|
3465
3470
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
3466
3471
|
|
|
3467
|
-
const SUPPORTED_LAYOUT_TYPES = new Set(['cinema', 'focusContent', 'balanced', 'floatingCorner', 'fullscreenContent']);
|
|
3472
|
+
const SUPPORTED_LAYOUT_TYPES = new Set(['cinema', 'focusContent', 'focusContentCompact', 'balanced', 'floatingCorner', 'fullscreenContent']);
|
|
3468
3473
|
|
|
3469
3474
|
const avatarRuntimeHeadFloaterVisualSettingsSchema = {
|
|
3470
3475
|
type: 'object',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unisphere/genie-types",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.7-moe.0",
|
|
4
4
|
"author": "kaltura",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"repository": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"types": "./src/index.d.ts",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@kaltura-sdk/rtc-core": "^1.26.
|
|
12
|
+
"@kaltura-sdk/rtc-core": "^1.26.2",
|
|
13
13
|
"@unisphere/core": "^1.99.0",
|
|
14
14
|
"@unisphere/runtime": "^1.98.0",
|
|
15
15
|
"@unisphere/runtime-js": "^1.96.0"
|
|
@@ -10,6 +10,13 @@ export interface AvatarServiceType extends UnisphereService {
|
|
|
10
10
|
id: 'unisphere.widget.genie.avatar';
|
|
11
11
|
readonly visualBridge: AvatarVisualBridgeType;
|
|
12
12
|
readonly connection: TinyDataStoreConsumer<AvatarConnectionProxyType | null>;
|
|
13
|
+
/** True while the avatar is speaking. Never null; false when disconnected. */
|
|
14
|
+
readonly isAgentTalking: TinyDataStoreConsumer<boolean>;
|
|
15
|
+
/** Runtime feature flags exposed to content tools. */
|
|
16
|
+
readonly features: {
|
|
17
|
+
/** Auto-enter interactive clip mode once the avatar finishes talking (default false). */
|
|
18
|
+
readonly interactiveClipAutoSwitch: boolean;
|
|
19
|
+
};
|
|
13
20
|
connect(options?: {
|
|
14
21
|
context?: {
|
|
15
22
|
type: 'thread';
|
|
@@ -5,6 +5,7 @@ export type ChatEntry = {
|
|
|
5
5
|
text: string;
|
|
6
6
|
turnId?: string;
|
|
7
7
|
messageId?: string;
|
|
8
|
+
speechId?: string;
|
|
8
9
|
};
|
|
9
10
|
export type ClientToolCallLogEntryStatus = 'fired' | 'unregistered' | 'unregistered-awaiting-response' | 'completed' | 'error' | 'no-response' | 'delivery-error' | 'invalid-payload' | 'invalid-arguments';
|
|
10
11
|
export type ClientToolCallLogEntry = {
|
|
@@ -177,6 +177,12 @@ export type AvatarRuntimeSettings = {
|
|
|
177
177
|
kickOffPhrase?: string;
|
|
178
178
|
/** Dynamic request variables */
|
|
179
179
|
dynamicVariables?: Record<string, unknown>;
|
|
180
|
+
/**
|
|
181
|
+
* Interactive clip mode behavior in content tools. When true, tools switch to interactive clip
|
|
182
|
+
* mode automatically once the avatar finishes talking, instead of waiting for a "Watch clip" click.
|
|
183
|
+
* Defaults to false.
|
|
184
|
+
*/
|
|
185
|
+
interactiveClipAutoSwitch?: boolean;
|
|
180
186
|
};
|
|
181
187
|
/** Full URL to POST client-tool-call responses to (e.g. `https://genie.example.com/assistant/tool_response`). Required for client tool calls to receive a response. Applies to both `manual` and `studio` modes. */
|
|
182
188
|
clientToolResponseUrl?: string;
|
|
@@ -2,7 +2,7 @@ import { AvatarContentData } from './shared-types';
|
|
|
2
2
|
import { UnisphereVisualBridgeType } from '@unisphere/runtime-js';
|
|
3
3
|
export type SlotMode = 'append' | 'replace';
|
|
4
4
|
export type SlotMount = (container: HTMLElement) => () => void;
|
|
5
|
-
export type SlotType = 'status' | 'controls';
|
|
5
|
+
export type SlotType = 'status' | 'controls' | 'avatar';
|
|
6
6
|
export interface SlotConfig {
|
|
7
7
|
mount: SlotMount;
|
|
8
8
|
mode?: SlotMode;
|
|
@@ -12,7 +12,7 @@ export interface SlotEntry {
|
|
|
12
12
|
mount: SlotMount;
|
|
13
13
|
mode: SlotMode;
|
|
14
14
|
}
|
|
15
|
-
export type LayoutType = 'cinema' | 'focusContent' | 'balanced' | 'floatingCorner' | 'fullscreenContent';
|
|
15
|
+
export type LayoutType = 'cinema' | 'focusContent' | 'focusContentCompact' | 'balanced' | 'floatingCorner' | 'fullscreenContent';
|
|
16
16
|
export type ForceOrientation = 'portrait' | 'landscape';
|
|
17
17
|
export declare const SUPPORTED_LAYOUT_TYPES: Set<string>;
|
|
18
18
|
export interface LayoutConfig {
|
|
@@ -26,6 +26,8 @@ export interface VisualBehavior {
|
|
|
26
26
|
pauseAfterSpeaking?: boolean;
|
|
27
27
|
pauseImmediately?: boolean;
|
|
28
28
|
switchToTapToTalk?: boolean;
|
|
29
|
+
muteMic?: boolean;
|
|
30
|
+
disableMic?: boolean;
|
|
29
31
|
}
|
|
30
32
|
export interface VisualTypeConfig {
|
|
31
33
|
behavior?: VisualBehavior;
|
|
@@ -33,9 +35,13 @@ export interface VisualTypeConfig {
|
|
|
33
35
|
chat?: ChatConfig;
|
|
34
36
|
slots?: Partial<Record<SlotType, SlotConfig>>;
|
|
35
37
|
}
|
|
38
|
+
export interface ResolvedBehavior {
|
|
39
|
+
disableMic?: boolean;
|
|
40
|
+
}
|
|
36
41
|
export interface ResolvedCapabilities {
|
|
37
42
|
layout?: LayoutConfig;
|
|
38
43
|
chat?: ChatConfig;
|
|
44
|
+
behavior?: ResolvedBehavior;
|
|
39
45
|
slots: Partial<Record<SlotType, SlotEntry[]>>;
|
|
40
46
|
}
|
|
41
47
|
export interface ActionContext {
|
|
@@ -98,6 +98,8 @@ export interface ChatCustomization {
|
|
|
98
98
|
visible: boolean;
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
|
+
/** HTML string displayed in the Quick Tips popover in the header. */
|
|
102
|
+
tips?: string;
|
|
101
103
|
/** thread configuration */
|
|
102
104
|
thread?: {
|
|
103
105
|
/** enabled by default */
|
|
@@ -152,5 +154,7 @@ export type Background = {
|
|
|
152
154
|
/** Image URL */
|
|
153
155
|
url: string;
|
|
154
156
|
};
|
|
155
|
-
export type ConfiguredCustomizationValues = Pick<ChatCustomization, 'layouts' | 'initialPage'
|
|
157
|
+
export type ConfiguredCustomizationValues = Pick<ChatCustomization, 'layouts' | 'initialPage'> & {
|
|
158
|
+
tips?: string;
|
|
159
|
+
};
|
|
156
160
|
export declare const chatCustomizationSchema: ValidatorSchema;
|