@unisphere/genie-types 1.29.1 → 1.29.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.29.1",
3
+ "version": "1.29.3",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -40,6 +40,7 @@ export type AvatarRuntime = UnisphereRuntimeBaseType<AvatarRuntimeSettings> & {
40
40
  registerClientTools<TMap extends Record<string, unknown>>(tools: {
41
41
  [K in keyof TMap]: (args: TMap[K]) => undefined | null | Record<string, unknown> | Promise<Record<string, unknown>>;
42
42
  }): void;
43
+ unregisterClientTools(...names: string[]): void;
43
44
  /** Observable chat panel open state */
44
45
  isChatPanelOpen: TinyDataStoreConsumer<boolean>;
45
46
  /** Update chat panel open state */
@@ -78,7 +78,7 @@ export type AgentTapToTalkInfo = {
78
78
  /** Timestamp (ms) when the current recording started, or null when idle */
79
79
  startedAt: number | null;
80
80
  /** Whether the idle tap-to-talk button should be shown as enabled */
81
- buttonEnabled: boolean;
81
+ buttonVisible: boolean;
82
82
  };
83
83
  /**
84
84
  * Agent kaltura context data
@@ -4,17 +4,24 @@ import { widgetName } from '../widget-types';
4
4
  import { ChatContext, GlobalChatSettings } from './shared-settings';
5
5
  /** Runtime name constant for chat experiences */
6
6
  export declare const ChatRuntimeName: "chat";
7
+ export type ChatRuntimeBaseType = {
8
+ registerClientTools<TMap extends Record<string, unknown>>(tools: {
9
+ [K in keyof TMap]: (args: TMap[K]) => undefined | null | Record<string, unknown> | Promise<Record<string, unknown>>;
10
+ }): void;
11
+ unregisterClientTools(...names: string[]): void;
12
+ updateDynamicVariables(variables: Record<string, unknown>): void;
13
+ };
7
14
  /**
8
15
  * Chat runtime interface for Genie conversational AI experiences.
9
16
  *
10
17
  * Provides the core runtime for chat-based interactions with Genie's AI assistant,
11
18
  * including conversation management, message handling, and integration features.
12
19
  */
13
- export interface ChatRuntime extends UnisphereRuntimeBaseType<ChatRuntimeSettings> {
20
+ export type ChatRuntime = UnisphereRuntimeBaseType<ChatRuntimeSettings> & {
14
21
  readonly widgetName: typeof widgetName;
15
22
  readonly runtimeName: typeof ChatRuntimeName;
16
23
  readonly flavor: '';
17
- }
24
+ } & ChatRuntimeBaseType;
18
25
  /** Shared settings fields between ChatRuntimeSettings and ChatRuntimePlayerPluginSettings. */
19
26
  export interface BaseChatRuntimeSettings {
20
27
  /** Kaltura session token for authentication */