@unisphere/genie-types 1.27.0-head.0 → 1.27.0-head.1

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.27.0-head.0",
3
+ "version": "1.27.0-head.1",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -2,9 +2,15 @@ import { TinyDataStoreConsumer, TinyPubSub, ValidatorSchema } from '@unisphere/c
2
2
  import { UnisphereRuntimeBaseType } from '@unisphere/runtime';
3
3
  import { widgetName } from '../widget-types';
4
4
  import { ChatContext, GenieCapabilities } from '../chat-runtime/shared-settings';
5
- import { CaptionConfig } from './shared-types';
5
+ import { CaptionConfig, CaptionState } from './shared-types';
6
6
  /** Runtime name constant for avatar experiences */
7
7
  export declare const AvatarRuntimeName: "avatar";
8
+ export interface Captions {
9
+ state: TinyDataStoreConsumer<CaptionState | null>;
10
+ toggle(): void;
11
+ setReplacements(replacements: Record<string, string> | null): void;
12
+ setFilter(filter: ((text: string) => string) | null): void;
13
+ }
8
14
  /**
9
15
  * Avatar runtime interface for interactive AI avatar experiences.
10
16
  *
@@ -23,6 +29,10 @@ export type AvatarRuntime = UnisphereRuntimeBaseType<AvatarRuntimeSettings> & {
23
29
  disconnect(): void;
24
30
  /** Observable connection status */
25
31
  isConnected: TinyDataStoreConsumer<boolean>;
32
+ isPaused: TinyDataStoreConsumer<boolean>;
33
+ captions: Captions;
34
+ setDynamicVariables(data: Record<string, any>): void;
35
+ registerClientTools(tools: Record<string, (variables: Record<string, any>) => Promise<any>>): void;
26
36
  /** Observable chat panel open state */
27
37
  isChatPanelOpen: TinyDataStoreConsumer<boolean>;
28
38
  /** Update chat panel open state */