@unisphere/genie-types 1.34.3 → 1.34.5

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.34.3",
3
+ "version": "1.34.5",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -5,3 +5,14 @@ export type ChatEntry = {
5
5
  text: string;
6
6
  turnId?: string;
7
7
  };
8
+ export type ClientToolCallLogEntryStatus = 'fired' | 'unregistered' | 'completed' | 'error';
9
+ export type ClientToolCallLogEntry = {
10
+ id: string;
11
+ name: string;
12
+ args: Record<string, unknown>;
13
+ waitForResponse: boolean;
14
+ status: ClientToolCallLogEntryStatus;
15
+ timestamp: number;
16
+ threadId: string | null;
17
+ error?: string;
18
+ };
@@ -159,7 +159,7 @@ export type AvatarRuntimeSettings = {
159
159
  };
160
160
  } & (({
161
161
  serverConfig?: 'manual';
162
- } & AvatarServerConfig) | {
162
+ } & Omit<AvatarServerConfig, 'ks'>) | {
163
163
  serverConfig: 'studio';
164
164
  });
165
165
  export declare const avatarRuntimeSettingsSchema: ValidatorSchema;
@@ -1,6 +1,6 @@
1
1
  import { TinyDataStoreConsumer } from '@unisphere/core';
2
2
  import { DeviceEnumerationResult } from '@kaltura-sdk/rtc-core';
3
- import type { ChatEntry } from './chat-types';
3
+ import type { ChatEntry, ClientToolCallLogEntry } from './chat-types';
4
4
  import { ChatContext } from '../chat-runtime';
5
5
  import type { Captions } from './runtime-types';
6
6
  /**
@@ -383,6 +383,10 @@ export interface AvatarClientManagerType {
383
383
  registerClientTools(config: Record<string, unknown>): void;
384
384
  /** Unregister client-side tool handlers by name */
385
385
  unregisterClientTools(...names: string[]): void;
386
+ /** Observable list of currently registered client tool names */
387
+ readonly registeredClientTools: TinyDataStoreConsumer<string[]>;
388
+ /** Observable log of client tool calls fired from the server, including unregistered ones */
389
+ readonly clientToolCallLog: TinyDataStoreConsumer<ClientToolCallLogEntry[]>;
386
390
  /** Observable persistent thread identifier */
387
391
  readonly threadId: TinyDataStoreConsumer<string | null>;
388
392
  /** Set the thread identifier used for the next `connect()` */