@unisphere/genie-types 1.42.2 → 1.44.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.42.2",
3
+ "version": "1.44.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: {
@@ -98,6 +98,10 @@ export type AgentProgressBar = {
98
98
  variant?: string;
99
99
  /** Hover text per step, in step order; a missing or empty entry shows no tooltip */
100
100
  tooltips?: string[];
101
+ /** Parts inside the current step; splits the line after the current step into this many segments */
102
+ subSteps?: number;
103
+ /** 1-based part the user is on now; only set together with subSteps */
104
+ currentSubStep?: number;
101
105
  };
102
106
  /**
103
107
  * Tap-to-talk mode state
@@ -112,6 +116,13 @@ export type AgentTapToTalkInfo = {
112
116
  /** Whether the idle tap-to-talk button should be shown as enabled */
113
117
  buttonVisible: boolean;
114
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
+ };
115
126
  /**
116
127
  * Agent kaltura context data
117
128
  */
@@ -301,7 +312,7 @@ export interface AvatarConnectionProxyType {
301
312
  /** Request avatar pause after current speech finishes */
302
313
  pauseAvatarAfterSpeaking(): void;
303
314
  /** Start a tap-to-talk recording */
304
- tapToTalkStart(): void;
315
+ tapToTalkStart(options?: TapToTalkStartOptions): void;
305
316
  /** End the current tap-to-talk recording */
306
317
  tapToTalkEnd(): void;
307
318
  /** Clear current visual content */
@@ -395,7 +406,7 @@ export interface AvatarClientManagerType {
395
406
  /** Observable tap-to-talk mode state */
396
407
  readonly tapToTalkInfo: TinyDataStoreConsumer<AgentTapToTalkInfo | null>;
397
408
  /** Start a tap-to-talk recording */
398
- tapToTalkStart(): void;
409
+ tapToTalkStart(options?: TapToTalkStartOptions): void;
399
410
  /** End the current tap-to-talk recording */
400
411
  tapToTalkEnd(): void;
401
412
  /** Enable/disable tap-to-talk mode */