@unisphere/genie-types 1.39.0 → 1.39.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/index.esm.js
CHANGED
|
@@ -2246,11 +2246,6 @@ const avatarRuntimeSettingsSchema = {
|
|
|
2246
2246
|
type: 'primitive',
|
|
2247
2247
|
value: 'string'
|
|
2248
2248
|
},
|
|
2249
|
-
genieServerUrl: {
|
|
2250
|
-
type: 'primitive',
|
|
2251
|
-
value: 'string',
|
|
2252
|
-
optional: true
|
|
2253
|
-
},
|
|
2254
2249
|
clientId: {
|
|
2255
2250
|
type: 'primitive',
|
|
2256
2251
|
value: 'string',
|
|
@@ -2296,6 +2291,11 @@ const avatarRuntimeSettingsSchema = {
|
|
|
2296
2291
|
value: 'boolean',
|
|
2297
2292
|
optional: true
|
|
2298
2293
|
},
|
|
2294
|
+
clientToolResponseUrl: {
|
|
2295
|
+
type: 'primitive',
|
|
2296
|
+
value: 'string',
|
|
2297
|
+
optional: true
|
|
2298
|
+
},
|
|
2299
2299
|
kaltura: kalturaSchema,
|
|
2300
2300
|
features: featuresSchema
|
|
2301
2301
|
}
|
|
@@ -2313,6 +2313,16 @@ const avatarRuntimeSettingsSchema = {
|
|
|
2313
2313
|
type: 'literal',
|
|
2314
2314
|
value: 'studio'
|
|
2315
2315
|
},
|
|
2316
|
+
agenticServerUrl: {
|
|
2317
|
+
type: 'primitive',
|
|
2318
|
+
value: 'string',
|
|
2319
|
+
optional: true
|
|
2320
|
+
},
|
|
2321
|
+
clientToolResponseUrl: {
|
|
2322
|
+
type: 'primitive',
|
|
2323
|
+
value: 'string',
|
|
2324
|
+
optional: true
|
|
2325
|
+
},
|
|
2316
2326
|
kaltura: kalturaSchema,
|
|
2317
2327
|
features: featuresSchema
|
|
2318
2328
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unisphere/genie-types",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.3",
|
|
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"
|
|
@@ -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 {
|
|
@@ -171,9 +178,13 @@ export type AvatarRuntimeSettings = {
|
|
|
171
178
|
/** Dynamic request variables */
|
|
172
179
|
dynamicVariables?: Record<string, unknown>;
|
|
173
180
|
};
|
|
181
|
+
/** Full URL to POST client-tool-call responses to (e.g. `https://genie.example.com/assistant/tool_response`). Required for client tool calls to receive a response. Applies to both `manual` and `studio` modes. */
|
|
182
|
+
clientToolResponseUrl?: string;
|
|
174
183
|
} & (({
|
|
175
184
|
serverConfig?: 'manual';
|
|
176
185
|
} & Omit<AvatarServerConfig, 'ks'>) | {
|
|
177
186
|
serverConfig: 'studio';
|
|
187
|
+
/** Agentic/appInit service URL (the api.avatar service URL). Optional here since the Unisphere runtime fills it in via `environmentResolver` when omitted — but required by `AvatarClientManager` itself, which has no such fallback. */
|
|
188
|
+
agenticServerUrl?: string;
|
|
178
189
|
});
|
|
179
190
|
export declare const avatarRuntimeSettingsSchema: ValidatorSchema;
|
|
@@ -66,6 +66,8 @@ export interface ChatCustomization {
|
|
|
66
66
|
type?: 'default' | 'banner' | 'chatThread';
|
|
67
67
|
/** Page title text */
|
|
68
68
|
title?: string;
|
|
69
|
+
/** Page subtitle text */
|
|
70
|
+
subtitle?: string;
|
|
69
71
|
/** Suggested questions to display on landing page */
|
|
70
72
|
initialQuestions?: InitialQuestion[];
|
|
71
73
|
/** Background image configuration */
|