@unisphere/genie-types 1.39.6 → 1.39.8-source.0
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 +2 -0
- package/package.json +2 -2
- package/src/lib/avatar-runtime/avatar-service-types.d.ts +5 -1
- package/src/lib/avatar-runtime/runtime-types.d.ts +3 -1
- package/src/lib/avatar-runtime/visual-bridge-types.d.ts +1 -0
- package/src/lib/chat-customizations-types.d.ts +5 -1
- package/src/lib/shared/genie-chat-service-types.d.ts +2 -2
package/index.esm.js
CHANGED
|
@@ -2311,6 +2311,7 @@ const avatarRuntimeSettingsSchema = {
|
|
|
2311
2311
|
value: 'string',
|
|
2312
2312
|
optional: true
|
|
2313
2313
|
},
|
|
2314
|
+
getSourceUrl: getSourceUrlSchema,
|
|
2314
2315
|
kaltura: kalturaSchema,
|
|
2315
2316
|
features: featuresSchema
|
|
2316
2317
|
}
|
|
@@ -2338,6 +2339,7 @@ const avatarRuntimeSettingsSchema = {
|
|
|
2338
2339
|
value: 'string',
|
|
2339
2340
|
optional: true
|
|
2340
2341
|
},
|
|
2342
|
+
getSourceUrl: getSourceUrlSchema,
|
|
2341
2343
|
kaltura: kalturaSchema,
|
|
2342
2344
|
features: featuresSchema
|
|
2343
2345
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unisphere/genie-types",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.8-source.0",
|
|
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.26.
|
|
12
|
+
"@kaltura-sdk/rtc-core": "^1.26.2",
|
|
13
13
|
"@unisphere/core": "^1.99.0",
|
|
14
14
|
"@unisphere/runtime": "^1.98.0",
|
|
15
15
|
"@unisphere/runtime-js": "^1.96.0"
|
|
@@ -25,7 +25,11 @@ export interface AvatarServiceType extends UnisphereService {
|
|
|
25
25
|
uiConfId: string;
|
|
26
26
|
ks: string;
|
|
27
27
|
} | null;
|
|
28
|
-
|
|
28
|
+
/** Present only when the host provided a source URL resolver */
|
|
29
|
+
getEntrySourceUrl?: (entryId: string, startTime?: number) => string | {
|
|
30
|
+
url: string;
|
|
31
|
+
target: string;
|
|
32
|
+
};
|
|
29
33
|
clearContent(): void;
|
|
30
34
|
askViaText(question: string): void;
|
|
31
35
|
onWebsocketEvents: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TinyDataStoreConsumer, ValidatorSchema } from '@unisphere/core';
|
|
2
2
|
import { UnisphereRuntimeBaseType } from '@unisphere/runtime';
|
|
3
3
|
import { widgetName } from '../widget-types';
|
|
4
|
-
import { ChatContext, GenieCapabilities } from '../chat-runtime/shared-settings';
|
|
4
|
+
import { ChatContext, GenieCapabilities, GlobalChatSettings } from '../chat-runtime/shared-settings';
|
|
5
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 */
|
|
@@ -180,6 +180,8 @@ export type AvatarRuntimeSettings = {
|
|
|
180
180
|
};
|
|
181
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
182
|
clientToolResponseUrl?: string;
|
|
183
|
+
/** Callback to generate source URLs for an entry. When absent, source links are not shown. */
|
|
184
|
+
getSourceUrl?: GlobalChatSettings['getSourceUrl'];
|
|
183
185
|
} & (({
|
|
184
186
|
serverConfig?: 'manual';
|
|
185
187
|
} & Omit<AvatarServerConfig, 'ks'>) | {
|
|
@@ -98,6 +98,8 @@ export interface ChatCustomization {
|
|
|
98
98
|
visible: boolean;
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
|
+
/** HTML string displayed in the Quick Tips popover in the header. */
|
|
102
|
+
tips?: string;
|
|
101
103
|
/** thread configuration */
|
|
102
104
|
thread?: {
|
|
103
105
|
/** enabled by default */
|
|
@@ -152,5 +154,7 @@ export type Background = {
|
|
|
152
154
|
/** Image URL */
|
|
153
155
|
url: string;
|
|
154
156
|
};
|
|
155
|
-
export type ConfiguredCustomizationValues = Pick<ChatCustomization, 'layouts' | 'initialPage'
|
|
157
|
+
export type ConfiguredCustomizationValues = Pick<ChatCustomization, 'layouts' | 'initialPage'> & {
|
|
158
|
+
tips?: string;
|
|
159
|
+
};
|
|
156
160
|
export declare const chatCustomizationSchema: ValidatorSchema;
|
|
@@ -37,8 +37,8 @@ export interface GenieChatServiceType extends UnisphereService {
|
|
|
37
37
|
getClipPlayerUrl?: (source: ClassGenieGetClipPlayerUrlData) => string | null;
|
|
38
38
|
/** Generate poster/thumbnail URL for video clip */
|
|
39
39
|
getClipPlayerPosterUrl: (source: ClassGenieGetClipPlayerPosterUrlData) => string;
|
|
40
|
-
/** Generate source URL for media entry with optional start time */
|
|
41
|
-
getEntrySourceUrl
|
|
40
|
+
/** Generate source URL for media entry with optional start time. Present only when the host provided a source URL resolver */
|
|
41
|
+
getEntrySourceUrl?: (entryId: string, startTime?: number) => string | {
|
|
42
42
|
url: string;
|
|
43
43
|
target: string;
|
|
44
44
|
};
|