@unisphere/genie-types 1.47.5 → 1.49.0-quiz-skip.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,27 @@ 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;
|
|
124
|
+
/** The student skipped this screen's question; never set together with answered */
|
|
125
|
+
skipped?: boolean;
|
|
105
126
|
};
|
|
106
127
|
/**
|
|
107
128
|
* Tap-to-talk mode state
|
|
@@ -439,6 +460,8 @@ export interface AvatarClientManagerType {
|
|
|
439
460
|
toggleKalturaContext(active: boolean): void;
|
|
440
461
|
/** Update dynamic variables sent to the agent */
|
|
441
462
|
updateDynamicVariables(data: Record<string, unknown>): void;
|
|
463
|
+
/** Replace the variables visuals send to the agent (see AvatarVisualBridgeType.setRequestVariable) */
|
|
464
|
+
updateVisualVariables(data: Record<string, string>): void;
|
|
442
465
|
/** Register client-side tool handlers */
|
|
443
466
|
registerClientTools(config: Record<string, unknown>): void;
|
|
444
467
|
/** 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
|
}
|