@unisphere/genie-types 1.43.0 → 1.45.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/genie-types",
3
- "version": "1.43.0",
3
+ "version": "1.45.0",
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 { AgentTapToTalkInfo, AvatarConnectionProxyType } from './shared-types';
4
+ import { AgentTapToTalkInfo, AvatarConnectionProxyType, TapToTalkStartOptions } from './shared-types';
5
5
  export type AvatarWebsocketEvent = {
6
6
  name: string;
7
7
  payload: any;
@@ -40,7 +40,7 @@ export interface AvatarServiceType extends UnisphereService {
40
40
  clearContent(): void;
41
41
  askViaText(question: string): void;
42
42
  /** Start a tap-to-talk recording. */
43
- tapToTalkStart(): void;
43
+ tapToTalkStart(options?: TapToTalkStartOptions): void;
44
44
  /** End the current tap-to-talk recording and send it to the agent. */
45
45
  tapToTalkEnd(): void;
46
46
  onWebsocketEvents: {
@@ -116,6 +116,13 @@ export type AgentTapToTalkInfo = {
116
116
  /** Whether the idle tap-to-talk button should be shown as enabled */
117
117
  buttonVisible: boolean;
118
118
  };
119
+ /**
120
+ * Options for starting a tap-to-talk recording
121
+ */
122
+ export type TapToTalkStartOptions = {
123
+ /** Ask the server to enrich the recorded audio (e.g. speech analysis) */
124
+ enrichAudio?: boolean;
125
+ };
119
126
  /**
120
127
  * Agent kaltura context data
121
128
  */
@@ -305,7 +312,7 @@ export interface AvatarConnectionProxyType {
305
312
  /** Request avatar pause after current speech finishes */
306
313
  pauseAvatarAfterSpeaking(): void;
307
314
  /** Start a tap-to-talk recording */
308
- tapToTalkStart(): void;
315
+ tapToTalkStart(options?: TapToTalkStartOptions): void;
309
316
  /** End the current tap-to-talk recording */
310
317
  tapToTalkEnd(): void;
311
318
  /** Clear current visual content */
@@ -399,7 +406,7 @@ export interface AvatarClientManagerType {
399
406
  /** Observable tap-to-talk mode state */
400
407
  readonly tapToTalkInfo: TinyDataStoreConsumer<AgentTapToTalkInfo | null>;
401
408
  /** Start a tap-to-talk recording */
402
- tapToTalkStart(): void;
409
+ tapToTalkStart(options?: TapToTalkStartOptions): void;
403
410
  /** End the current tap-to-talk recording */
404
411
  tapToTalkEnd(): void;
405
412
  /** Enable/disable tap-to-talk mode */
@@ -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' | 'avatar';
5
+ export type SlotType = 'controls' | 'avatar';
6
6
  export interface SlotConfig {
7
7
  mount: SlotMount;
8
8
  mode?: SlotMode;
@@ -34,7 +34,6 @@ export interface VisualBehavior {
34
34
  muteMic?: boolean;
35
35
  disableMic?: boolean;
36
36
  hideMicControls?: boolean;
37
- hideStatusRow?: boolean;
38
37
  tapToTalkLabels?: TapToTalkLabels;
39
38
  }
40
39
  export interface VisualTypeConfig {
@@ -46,7 +45,6 @@ export interface VisualTypeConfig {
46
45
  export interface ResolvedBehavior {
47
46
  disableMic?: boolean;
48
47
  hideMicControls?: boolean;
49
- hideStatusRow?: boolean;
50
48
  tapToTalkLabels?: TapToTalkLabels;
51
49
  }
52
50
  export interface ResolvedCapabilities {