@unisphere/genie-types 1.39.7-moe.2 → 1.39.7-moe.3

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/genie-types",
3
- "version": "1.39.7-moe.2",
3
+ "version": "1.39.7-moe.3",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -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,6 +12,8 @@ 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>;
15
17
  /** Runtime feature flags exposed to content tools. */
16
18
  readonly features: {
17
19
  /** Auto-enter interactive clip mode once the avatar finishes talking (default false). */
@@ -35,6 +37,10 @@ export interface AvatarServiceType extends UnisphereService {
35
37
  getEntrySourceUrl(entryId: string, startTime?: number): string;
36
38
  clearContent(): void;
37
39
  askViaText(question: string): void;
40
+ /** Start a tap-to-talk recording. */
41
+ tapToTalkStart(): void;
42
+ /** End the current tap-to-talk recording and send it to the agent. */
43
+ tapToTalkEnd(): void;
38
44
  onWebsocketEvents: {
39
45
  system: TinyPubSub<AvatarWebsocketEvent>['consumer'];
40
46
  app: TinyPubSub<AvatarWebsocketEvent>['consumer'];
@@ -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 {