@unisphere/genie-types 1.39.7-moe.2 → 1.39.7-moe.4
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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UnisphereService } from '@unisphere/runtime';
|
|
2
2
|
import { AvatarVisualBridgeType } from './visual-bridge-types';
|
|
3
3
|
import { TinyDataStoreConsumer, TinyPubSub } from '@unisphere/core';
|
|
4
|
-
import { AvatarConnectionProxyType } from './shared-types';
|
|
4
|
+
import { AgentTapToTalkInfo, AvatarConnectionProxyType } from './shared-types';
|
|
5
5
|
export type AvatarWebsocketEvent = {
|
|
6
6
|
name: string;
|
|
7
7
|
payload: any;
|
|
@@ -12,10 +12,14 @@ export interface AvatarServiceType extends UnisphereService {
|
|
|
12
12
|
readonly connection: TinyDataStoreConsumer<AvatarConnectionProxyType | null>;
|
|
13
13
|
/** True while the avatar is speaking. Never null; false when disconnected. */
|
|
14
14
|
readonly isAgentTalking: TinyDataStoreConsumer<boolean>;
|
|
15
|
+
/** Tap-to-talk mode state; null until connected. */
|
|
16
|
+
readonly tapToTalkInfo: TinyDataStoreConsumer<AgentTapToTalkInfo | null>;
|
|
17
|
+
/** Preview image of the current agent; null until known. */
|
|
18
|
+
readonly agentPreviewImageUrl: TinyDataStoreConsumer<string | null>;
|
|
15
19
|
/** Runtime feature flags exposed to content tools. */
|
|
16
20
|
readonly features: {
|
|
17
|
-
/**
|
|
18
|
-
readonly
|
|
21
|
+
/** Watch clips inline: avatar hides after talking, layout stays. */
|
|
22
|
+
readonly inlineClipPlayback: boolean;
|
|
19
23
|
};
|
|
20
24
|
connect(options?: {
|
|
21
25
|
context?: {
|
|
@@ -35,6 +39,10 @@ export interface AvatarServiceType extends UnisphereService {
|
|
|
35
39
|
getEntrySourceUrl(entryId: string, startTime?: number): string;
|
|
36
40
|
clearContent(): void;
|
|
37
41
|
askViaText(question: string): void;
|
|
42
|
+
/** Start a tap-to-talk recording. */
|
|
43
|
+
tapToTalkStart(): void;
|
|
44
|
+
/** End the current tap-to-talk recording and send it to the agent. */
|
|
45
|
+
tapToTalkEnd(): void;
|
|
38
46
|
onWebsocketEvents: {
|
|
39
47
|
system: TinyPubSub<AvatarWebsocketEvent>['consumer'];
|
|
40
48
|
app: TinyPubSub<AvatarWebsocketEvent>['consumer'];
|
|
@@ -178,11 +178,11 @@ export type AvatarRuntimeSettings = {
|
|
|
178
178
|
/** Dynamic request variables */
|
|
179
179
|
dynamicVariables?: Record<string, unknown>;
|
|
180
180
|
/**
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
* Defaults to
|
|
181
|
+
* Inline clip playback flow in content tools. When true, once the avatar finishes talking about a
|
|
182
|
+
* clip the avatar hides (layout unchanged) and the user watches the clip in place, then clicks
|
|
183
|
+
* "I'm done watching" to continue. Defaults to true, except for specific partners/environments.
|
|
184
184
|
*/
|
|
185
|
-
|
|
185
|
+
inlineClipPlayback?: boolean;
|
|
186
186
|
};
|
|
187
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. */
|
|
188
188
|
clientToolResponseUrl?: string;
|
|
@@ -32,6 +32,7 @@ export interface VisualBehavior {
|
|
|
32
32
|
switchToTapToTalk?: boolean;
|
|
33
33
|
muteMic?: boolean;
|
|
34
34
|
disableMic?: boolean;
|
|
35
|
+
hideMicControls?: boolean;
|
|
35
36
|
tapToTalkLabels?: TapToTalkLabels;
|
|
36
37
|
}
|
|
37
38
|
export interface VisualTypeConfig {
|
|
@@ -42,6 +43,7 @@ export interface VisualTypeConfig {
|
|
|
42
43
|
}
|
|
43
44
|
export interface ResolvedBehavior {
|
|
44
45
|
disableMic?: boolean;
|
|
46
|
+
hideMicControls?: boolean;
|
|
45
47
|
tapToTalkLabels?: TapToTalkLabels;
|
|
46
48
|
}
|
|
47
49
|
export interface ResolvedCapabilities {
|