@unisphere/genie-types 1.47.1 → 1.47.2

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.47.1",
3
+ "version": "1.47.2",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -1,5 +1,6 @@
1
1
  import { AvatarContentData } from './shared-types';
2
2
  import { UnisphereVisualBridgeType } from '@unisphere/runtime-js';
3
+ import { TinyDataStoreConsumer } from '@unisphere/core';
3
4
  export type SlotMode = 'append' | 'replace';
4
5
  export type SlotMount = (container: HTMLElement) => () => void;
5
6
  export type SlotType = 'controls' | 'avatar';
@@ -36,6 +37,9 @@ export interface VisualBehavior {
36
37
  hideMicControls?: boolean;
37
38
  tapToTalkLabels?: TapToTalkLabels;
38
39
  }
40
+ export interface AgentBehavior extends Omit<VisualBehavior, 'pauseAfterSpeaking' | 'pauseImmediately'> {
41
+ layout?: LayoutType;
42
+ }
39
43
  export interface VisualTypeConfig {
40
44
  behavior?: VisualBehavior;
41
45
  layout?: LayoutConfig;
@@ -61,4 +65,7 @@ export interface ActionContext {
61
65
  }
62
66
  export interface AvatarVisualBridgeType extends UnisphereVisualBridgeType<VisualTypeConfig, ResolvedCapabilities> {
63
67
  getActionContext(): ActionContext | null;
68
+ readonly agentBehavior: TinyDataStoreConsumer<AgentBehavior | null>;
69
+ setAgentBehavior(patch: AgentBehavior): void;
70
+ clearAgentBehavior(): void;
64
71
  }