@unisphere/genie-types 1.47.5 → 1.48.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/package.json
CHANGED
|
@@ -102,6 +102,25 @@ export type AgentProgressBar = {
|
|
|
102
102
|
subSteps?: number;
|
|
103
103
|
/** 1-based part the user is on now; only set together with subSteps */
|
|
104
104
|
currentSubStep?: number;
|
|
105
|
+
/** Every screen of the lesson, in order; switches the bar to one segment per screen with navigation */
|
|
106
|
+
screens?: AgentProgressBarScreen[];
|
|
107
|
+
/** 1-based screen where the student stopped; set together with screens */
|
|
108
|
+
currentScreen?: number;
|
|
109
|
+
/** 1-based screen shown now, at most currentScreen; lower while reviewing a previous screen */
|
|
110
|
+
viewingScreen?: number;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* One lesson screen of the progress bar
|
|
114
|
+
*/
|
|
115
|
+
export type AgentProgressBarScreen = {
|
|
116
|
+
/** 1-based step (milestone) the screen belongs to */
|
|
117
|
+
step: number;
|
|
118
|
+
/** Activity type shown in the hover card, e.g. "Quiz" */
|
|
119
|
+
kind?: string;
|
|
120
|
+
/** Question or title shown in the hover card */
|
|
121
|
+
title?: string;
|
|
122
|
+
/** The student answered this screen's question */
|
|
123
|
+
answered?: boolean;
|
|
105
124
|
};
|
|
106
125
|
/**
|
|
107
126
|
* Tap-to-talk mode state
|
|
@@ -439,6 +458,8 @@ export interface AvatarClientManagerType {
|
|
|
439
458
|
toggleKalturaContext(active: boolean): void;
|
|
440
459
|
/** Update dynamic variables sent to the agent */
|
|
441
460
|
updateDynamicVariables(data: Record<string, unknown>): void;
|
|
461
|
+
/** Replace the variables visuals send to the agent (see AvatarVisualBridgeType.setRequestVariable) */
|
|
462
|
+
updateVisualVariables(data: Record<string, string>): void;
|
|
442
463
|
/** Register client-side tool handlers */
|
|
443
464
|
registerClientTools(config: Record<string, unknown>): void;
|
|
444
465
|
/** Unregister client-side tool handlers by name */
|
|
@@ -68,4 +68,6 @@ export interface AvatarVisualBridgeType extends UnisphereVisualBridgeType<Visual
|
|
|
68
68
|
readonly agentBehavior: TinyDataStoreConsumer<AgentBehavior | null>;
|
|
69
69
|
setAgentBehavior(patch: AgentBehavior): void;
|
|
70
70
|
clearAgentBehavior(): void;
|
|
71
|
+
setRequestVariable(name: string, value: string | null): void;
|
|
72
|
+
getRequestVariable(name: string): string | null;
|
|
71
73
|
}
|