@unisphere/genie-types 1.39.3 → 1.39.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/index.esm.js
CHANGED
|
@@ -1156,6 +1156,11 @@ const chatContextSchema = {
|
|
|
1156
1156
|
type: 'primitive',
|
|
1157
1157
|
value: 'string',
|
|
1158
1158
|
optional: true
|
|
1159
|
+
},
|
|
1160
|
+
templateName: {
|
|
1161
|
+
type: 'primitive',
|
|
1162
|
+
value: 'string',
|
|
1163
|
+
optional: true
|
|
1159
1164
|
}
|
|
1160
1165
|
}
|
|
1161
1166
|
},
|
|
@@ -1174,6 +1179,11 @@ const chatContextSchema = {
|
|
|
1174
1179
|
type: 'primitive',
|
|
1175
1180
|
value: 'string',
|
|
1176
1181
|
optional: true
|
|
1182
|
+
},
|
|
1183
|
+
templateName: {
|
|
1184
|
+
type: 'primitive',
|
|
1185
|
+
value: 'string',
|
|
1186
|
+
optional: true
|
|
1177
1187
|
}
|
|
1178
1188
|
}
|
|
1179
1189
|
},
|
|
@@ -1192,6 +1202,11 @@ const chatContextSchema = {
|
|
|
1192
1202
|
type: 'primitive',
|
|
1193
1203
|
value: 'string',
|
|
1194
1204
|
optional: true
|
|
1205
|
+
},
|
|
1206
|
+
templateName: {
|
|
1207
|
+
type: 'primitive',
|
|
1208
|
+
value: 'string',
|
|
1209
|
+
optional: true
|
|
1195
1210
|
}
|
|
1196
1211
|
}
|
|
1197
1212
|
}
|
|
@@ -2450,18 +2465,47 @@ const avatarRuntimeContainedVisualSettingsSchema = {
|
|
|
2450
2465
|
optional: true
|
|
2451
2466
|
},
|
|
2452
2467
|
lobbyButton: {
|
|
2453
|
-
type: '
|
|
2468
|
+
type: 'orByType',
|
|
2454
2469
|
optional: true,
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
type: '
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2470
|
+
schemas: {
|
|
2471
|
+
custom: {
|
|
2472
|
+
type: 'object',
|
|
2473
|
+
properties: {
|
|
2474
|
+
type: {
|
|
2475
|
+
type: 'literal',
|
|
2476
|
+
value: 'custom'
|
|
2477
|
+
},
|
|
2478
|
+
onMount: {
|
|
2479
|
+
type: 'function'
|
|
2480
|
+
},
|
|
2481
|
+
onUnMount: {
|
|
2482
|
+
type: 'function'
|
|
2483
|
+
}
|
|
2484
|
+
}
|
|
2462
2485
|
},
|
|
2463
|
-
|
|
2464
|
-
type: '
|
|
2486
|
+
default: {
|
|
2487
|
+
type: 'object',
|
|
2488
|
+
properties: {
|
|
2489
|
+
type: {
|
|
2490
|
+
type: 'literal',
|
|
2491
|
+
value: 'default'
|
|
2492
|
+
},
|
|
2493
|
+
label: {
|
|
2494
|
+
type: 'primitive',
|
|
2495
|
+
value: 'string',
|
|
2496
|
+
optional: true
|
|
2497
|
+
},
|
|
2498
|
+
icon: {
|
|
2499
|
+
type: 'primitive',
|
|
2500
|
+
value: 'any',
|
|
2501
|
+
optional: true
|
|
2502
|
+
},
|
|
2503
|
+
style: {
|
|
2504
|
+
type: 'primitive',
|
|
2505
|
+
value: 'object',
|
|
2506
|
+
optional: true
|
|
2507
|
+
}
|
|
2508
|
+
}
|
|
2465
2509
|
}
|
|
2466
2510
|
}
|
|
2467
2511
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unisphere/genie-types",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.5",
|
|
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.
|
|
12
|
+
"@kaltura-sdk/rtc-core": "^1.26.1",
|
|
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;
|
|
@@ -27,10 +27,12 @@ export type ChatContext = {
|
|
|
27
27
|
id: string;
|
|
28
28
|
imageUrl?: string;
|
|
29
29
|
title?: string;
|
|
30
|
+
templateName?: string;
|
|
30
31
|
} | {
|
|
31
32
|
type: 'category' | 'ancestor-category';
|
|
32
33
|
id: string;
|
|
33
34
|
title?: string;
|
|
35
|
+
templateName?: string;
|
|
34
36
|
};
|
|
35
37
|
/**
|
|
36
38
|
* Branding configuration for chat UI.
|