@unisphere/genie-types 1.39.1 → 1.39.4
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/index.esm.js
CHANGED
|
@@ -2450,18 +2450,47 @@ const avatarRuntimeContainedVisualSettingsSchema = {
|
|
|
2450
2450
|
optional: true
|
|
2451
2451
|
},
|
|
2452
2452
|
lobbyButton: {
|
|
2453
|
-
type: '
|
|
2453
|
+
type: 'orByType',
|
|
2454
2454
|
optional: true,
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
type: '
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2455
|
+
schemas: {
|
|
2456
|
+
custom: {
|
|
2457
|
+
type: 'object',
|
|
2458
|
+
properties: {
|
|
2459
|
+
type: {
|
|
2460
|
+
type: 'literal',
|
|
2461
|
+
value: 'custom'
|
|
2462
|
+
},
|
|
2463
|
+
onMount: {
|
|
2464
|
+
type: 'function'
|
|
2465
|
+
},
|
|
2466
|
+
onUnMount: {
|
|
2467
|
+
type: 'function'
|
|
2468
|
+
}
|
|
2469
|
+
}
|
|
2462
2470
|
},
|
|
2463
|
-
|
|
2464
|
-
type: '
|
|
2471
|
+
default: {
|
|
2472
|
+
type: 'object',
|
|
2473
|
+
properties: {
|
|
2474
|
+
type: {
|
|
2475
|
+
type: 'literal',
|
|
2476
|
+
value: 'default'
|
|
2477
|
+
},
|
|
2478
|
+
label: {
|
|
2479
|
+
type: 'primitive',
|
|
2480
|
+
value: 'string',
|
|
2481
|
+
optional: true
|
|
2482
|
+
},
|
|
2483
|
+
icon: {
|
|
2484
|
+
type: 'primitive',
|
|
2485
|
+
value: 'any',
|
|
2486
|
+
optional: true
|
|
2487
|
+
},
|
|
2488
|
+
style: {
|
|
2489
|
+
type: 'primitive',
|
|
2490
|
+
value: 'object',
|
|
2491
|
+
optional: true
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2465
2494
|
}
|
|
2466
2495
|
}
|
|
2467
2496
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unisphere/genie-types",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.4",
|
|
4
4
|
"author": "kaltura",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"repository": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"types": "./src/index.d.ts",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@kaltura-sdk/rtc-core": "^1.25.
|
|
12
|
+
"@kaltura-sdk/rtc-core": "^1.25.21",
|
|
13
13
|
"@unisphere/core": "^1.99.0",
|
|
14
14
|
"@unisphere/runtime": "^1.98.0",
|
|
15
15
|
"@unisphere/runtime-js": "^1.96.0"
|
|
@@ -4,6 +4,7 @@ export type ChatEntry = {
|
|
|
4
4
|
role: ChatEntryRole;
|
|
5
5
|
text: string;
|
|
6
6
|
turnId?: string;
|
|
7
|
+
messageId?: string;
|
|
7
8
|
};
|
|
8
9
|
export type ClientToolCallLogEntryStatus = 'fired' | 'unregistered' | 'unregistered-awaiting-response' | 'completed' | 'error' | 'no-response' | 'delivery-error' | 'invalid-payload' | 'invalid-arguments';
|
|
9
10
|
export type ClientToolCallLogEntry = {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ValidatorSchema } from '@unisphere/core';
|
|
2
3
|
import { AvatarRuntimeConnectSettings } from './shared-types';
|
|
3
4
|
import { ForceOrientation } from './visual-bridge-types';
|
|
@@ -22,11 +23,18 @@ export interface AvatarRuntimeContainedVisualSettings {
|
|
|
22
23
|
* - `null`: no lobby button rendered
|
|
23
24
|
* - `{ type: 'custom', ... }`: host renders its own button into the container,
|
|
24
25
|
* notified via `onMount`/`onUnMount`
|
|
26
|
+
* - `{ type: 'default', ... }`: host renders its own button into the container,
|
|
27
|
+
* with optional label, icon, and styles
|
|
25
28
|
*/
|
|
26
29
|
lobbyButton?: {
|
|
27
30
|
type: 'custom';
|
|
28
31
|
onMount: (containerId: string) => void;
|
|
29
32
|
onUnMount: (containerId: string) => void;
|
|
33
|
+
} | {
|
|
34
|
+
type: 'default';
|
|
35
|
+
label?: string;
|
|
36
|
+
icon?: React.ReactNode;
|
|
37
|
+
style?: React.CSSProperties;
|
|
30
38
|
} | null;
|
|
31
39
|
/** Forces the stage into a stacked or side-by-side layout, regardless of viewport width/orientation */
|
|
32
40
|
forceOrientation?: ForceOrientation;
|
|
@@ -2,7 +2,7 @@ import { TinyDataStoreConsumer, ValidatorSchema } from '@unisphere/core';
|
|
|
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 { AgentData, AgentScreenShareInfo, AgentTapToTalkInfo, AvatarConnectionStatus, CaptionConfig, CaptionState } from './shared-types';
|
|
5
|
+
import { AgentData, AgentScreenShareInfo, AgentTapToTalkInfo, AvatarConnectionStatus, CaptionConfig, CaptionState, DisconnectReasons } from './shared-types';
|
|
6
6
|
import { ChatEntry } from './chat-types';
|
|
7
7
|
/** Runtime name constant for avatar experiences */
|
|
8
8
|
export declare const AvatarRuntimeName: "avatar";
|
|
@@ -102,6 +102,13 @@ export type AvatarRuntime = UnisphereRuntimeBaseType<AvatarRuntimeSettings> & {
|
|
|
102
102
|
}>;
|
|
103
103
|
/** Observable agent data */
|
|
104
104
|
agentData: TinyDataStoreConsumer<AgentData>;
|
|
105
|
+
/** Observable disconnect data, including reason and error if applicable */
|
|
106
|
+
disconnectData: TinyDataStoreConsumer<{
|
|
107
|
+
reason: DisconnectReasons;
|
|
108
|
+
error?: Error;
|
|
109
|
+
suppressNotification?: boolean;
|
|
110
|
+
skipDisconnect?: boolean;
|
|
111
|
+
} | null>;
|
|
105
112
|
};
|
|
106
113
|
/** Event emitted when the avatar brain invokes a tool call */
|
|
107
114
|
export interface AvatarToolCallEvent {
|