@unisphere/genie-types 1.22.0-tools.0 → 1.22.0-tools.2
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 +7 -35
- package/package.json +1 -1
- package/src/index.d.ts +0 -1
- package/src/lib/avatar-runtime/avatar-service-types.d.ts +1 -1
- package/src/lib/chat-runtime/shared-settings.d.ts +2 -0
- package/src/lib/shared/{chat-tools-service-types.d.ts → genie-chat-service-types.d.ts} +1 -1
- package/src/lib/shared/index.d.ts +1 -1
- package/src/lib/kaltura-video-player-tool-runtime/genie-answer-visual-types.d.ts +0 -16
- package/src/lib/kaltura-video-player-tool-runtime/index.d.ts +0 -2
- package/src/lib/kaltura-video-player-tool-runtime/runtime-types.d.ts +0 -38
package/index.esm.js
CHANGED
|
@@ -1098,6 +1098,12 @@ const getAvatarDefaultCapabilities = context => {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
return AVATAR_DEFAULT_CAPABILITIES;
|
|
1100
1100
|
};
|
|
1101
|
+
const CHAT_CONTEXT_TYPE = {
|
|
1102
|
+
entry: 'entry',
|
|
1103
|
+
category: 'category',
|
|
1104
|
+
'ancestor-category': 'ancestor_category'
|
|
1105
|
+
};
|
|
1106
|
+
const CHAT_CONTEXT_TYPE_GLOBAL = 'global';
|
|
1101
1107
|
const chatContextSchema = {
|
|
1102
1108
|
type: 'orByType',
|
|
1103
1109
|
optional: true,
|
|
@@ -2218,40 +2224,6 @@ const applicationRuntimeSettingsSchema = {
|
|
|
2218
2224
|
/** Runtime name constant for application-level experiences */
|
|
2219
2225
|
const ApplicationRuntimeName = 'application';
|
|
2220
2226
|
|
|
2221
|
-
/** Runtime name constant for Kaltura video player tool */
|
|
2222
|
-
const KalturaVideoPlayerToolRuntimeName = 'kaltura-video-player-tool';
|
|
2223
|
-
const kalturaVideoPlayerToolRuntimeSettingsSchema = {
|
|
2224
|
-
type: 'object',
|
|
2225
|
-
properties: {
|
|
2226
|
-
kalturaServerURI: {
|
|
2227
|
-
type: 'primitive',
|
|
2228
|
-
value: 'string'
|
|
2229
|
-
},
|
|
2230
|
-
partnerId: {
|
|
2231
|
-
type: 'primitive',
|
|
2232
|
-
value: 'string'
|
|
2233
|
-
},
|
|
2234
|
-
uiConfId: {
|
|
2235
|
-
type: 'primitive',
|
|
2236
|
-
value: 'string'
|
|
2237
|
-
},
|
|
2238
|
-
ks: {
|
|
2239
|
-
type: 'primitive',
|
|
2240
|
-
value: 'string'
|
|
2241
|
-
}
|
|
2242
|
-
}
|
|
2243
|
-
};
|
|
2244
|
-
|
|
2245
|
-
const kalturaVideoPlayerToolRuntimeAvatarVisualSettingsSchema = {
|
|
2246
|
-
type: 'object',
|
|
2247
|
-
properties: {
|
|
2248
|
-
id: {
|
|
2249
|
-
type: 'primitive',
|
|
2250
|
-
value: 'string'
|
|
2251
|
-
}
|
|
2252
|
-
}
|
|
2253
|
-
};
|
|
2254
|
-
|
|
2255
2227
|
const ContentGalleryToolRuntimeName = 'content-gallery-tool';
|
|
2256
2228
|
const contentGalleryToolRuntimeSettingsSchema = {
|
|
2257
2229
|
type: 'object',
|
|
@@ -2455,4 +2427,4 @@ const contentGalleryToolRuntimeGenieAnswerVisualSettingsSchema = {
|
|
|
2455
2427
|
}
|
|
2456
2428
|
};
|
|
2457
2429
|
|
|
2458
|
-
export { AVATAR_DEFAULT_CAPABILITIES, AdminDemoRuntimeName, AdminRuntimeName, AgentUnavailabilityReasons, AnswerModelEnum, AnswerTypeEnum, ApplicationRuntimeName, AvatarConnectionStatus, AvatarRuntimeName, AvatarStatus, CHAT_DEFAULT_CAPABILITIES, ChatRuntimeName, ContentGalleryToolRuntimeName, DeviceType, DisconnectReasons,
|
|
2430
|
+
export { AVATAR_DEFAULT_CAPABILITIES, AdminDemoRuntimeName, AdminRuntimeName, AgentUnavailabilityReasons, AnswerModelEnum, AnswerTypeEnum, ApplicationRuntimeName, AvatarConnectionStatus, AvatarRuntimeName, AvatarStatus, CHAT_CONTEXT_TYPE, CHAT_CONTEXT_TYPE_GLOBAL, CHAT_DEFAULT_CAPABILITIES, ChatRuntimeName, ContentGalleryToolRuntimeName, DeviceType, DisconnectReasons, adminDemoRuntimeSettingsSchema, adminRuntimeSettingsSchema, applicationRuntimeSettingsSchema, avatarRuntimeAgentVisualSettingsSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeLobbyVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, chatContextSchema, chatCustomizationSchema, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, containedVisualSettingsSchema, contentGalleryToolRuntimeAvatarVisualSettingsSchema, contentGalleryToolRuntimeGenieAnswerVisualSettingsSchema, contentGalleryToolRuntimeSettingsSchema, floaterCTAVisualSettingsSchema, floaterVisualSettingsSchema, getAvatarDefaultCapabilities, getChatDefaultCapabilities, getSourceUrlSchema, integrationsSchema, isAvatarConnectionProxyInternalType, pageVisualSettingsSchema, popupVisualSettingsSchema, shareUrlSchema, slideSchema, widgetName };
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export * from './lib/avatar-runtime';
|
|
|
6
6
|
export * from './lib/admin-runtime';
|
|
7
7
|
export * from './lib/admin-demo-runtime';
|
|
8
8
|
export * from './lib/application-runtime';
|
|
9
|
-
export * from './lib/kaltura-video-player-tool-runtime';
|
|
10
9
|
export * from './lib/content-gallery-tool-runtime';
|
|
11
10
|
export * from './lib/chat-customizations-types';
|
|
12
11
|
export * from './lib/general-visual-types';
|
|
@@ -224,7 +224,7 @@ export interface AvatarConnectionProxyType {
|
|
|
224
224
|
}
|
|
225
225
|
export declare const isAvatarConnectionProxyInternalType: (x: any) => x is AvatarConnectionProxInternalType;
|
|
226
226
|
export interface AvatarServiceType extends UnisphereService {
|
|
227
|
-
id: 'unisphere.
|
|
227
|
+
id: 'unisphere.widget.genie.avatar';
|
|
228
228
|
connection: TinyDataStoreConsumer<AvatarConnectionProxyType | null>;
|
|
229
229
|
audioState: TinyDataStoreConsumer<{
|
|
230
230
|
muted: boolean;
|
|
@@ -13,6 +13,8 @@ export declare const CHAT_DEFAULT_CAPABILITIES: GenieCapabilities;
|
|
|
13
13
|
export declare const AVATAR_DEFAULT_CAPABILITIES: GenieCapabilities;
|
|
14
14
|
export declare const getChatDefaultCapabilities: (context?: ChatContext) => GenieCapabilities;
|
|
15
15
|
export declare const getAvatarDefaultCapabilities: (context?: ChatContext) => GenieCapabilities;
|
|
16
|
+
export declare const CHAT_CONTEXT_TYPE: Record<ChatContext['type'], string>;
|
|
17
|
+
export declare const CHAT_CONTEXT_TYPE_GLOBAL = "global";
|
|
16
18
|
export type ChatContext = {
|
|
17
19
|
type: 'entry';
|
|
18
20
|
id: string;
|
|
@@ -32,7 +32,7 @@ type ClassGenieGetClipPlayerPosterUrlData = {
|
|
|
32
32
|
*/
|
|
33
33
|
export interface GenieChatServiceType extends UnisphereService {
|
|
34
34
|
/** Service identifier */
|
|
35
|
-
id: 'unisphere.
|
|
35
|
+
id: 'unisphere.widget.genie.chat';
|
|
36
36
|
/** Generate URL for video clip player with time range */
|
|
37
37
|
getClipPlayerUrl?: (source: ClassGenieGetClipPlayerUrlData) => string | null;
|
|
38
38
|
/** Generate poster/thumbnail URL for video clip */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './chat-
|
|
1
|
+
export * from './genie-chat-service-types';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
/**
|
|
3
|
-
* Visual settings for Kaltura video player displayed in Genie answers.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* ```typescript
|
|
7
|
-
* const visualSettings: KalturaVideoPlayerToolRuntimeAvatarVisualSettings = {
|
|
8
|
-
* id: 'player_123'
|
|
9
|
-
* };
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
|
-
export interface KalturaVideoPlayerToolRuntimeAvatarVisualSettings {
|
|
13
|
-
/** Unique identifier for the player instance */
|
|
14
|
-
id: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const kalturaVideoPlayerToolRuntimeAvatarVisualSettingsSchema: ValidatorSchema;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
import { UnisphereRuntimeBaseType } from '@unisphere/runtime';
|
|
3
|
-
import { widgetName } from '../widget-types';
|
|
4
|
-
/** Runtime name constant for Kaltura video player tool */
|
|
5
|
-
export declare const KalturaVideoPlayerToolRuntimeName: "kaltura-video-player-tool";
|
|
6
|
-
/**
|
|
7
|
-
* Kaltura video player tool runtime for embedded media playback.
|
|
8
|
-
*
|
|
9
|
-
* Provides Kaltura player integration within Genie experiences.
|
|
10
|
-
*/
|
|
11
|
-
export type KalturaVideoPlayerToolRuntime = UnisphereRuntimeBaseType<KalturaVideoPlayerToolRuntimeSettings> & {
|
|
12
|
-
readonly widgetName: typeof widgetName;
|
|
13
|
-
readonly runtimeName: typeof KalturaVideoPlayerToolRuntimeName;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Configuration settings for the Kaltura video player tool runtime.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```typescript
|
|
20
|
-
* const settings: KalturaVideoPlayerToolRuntimeSettings = {
|
|
21
|
-
* kalturaServerURI: 'https://www.kaltura.com',
|
|
22
|
-
* partnerId: '12345',
|
|
23
|
-
* uiConfId: '54321',
|
|
24
|
-
* ks: 'your-kaltura-session-token'
|
|
25
|
-
* };
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export interface KalturaVideoPlayerToolRuntimeSettings {
|
|
29
|
-
/** Kaltura server URI */
|
|
30
|
-
kalturaServerURI: string;
|
|
31
|
-
/** Kaltura partner ID */
|
|
32
|
-
partnerId: string;
|
|
33
|
-
/** UI configuration ID */
|
|
34
|
-
uiConfId: string;
|
|
35
|
-
/** Kaltura session token for authentication */
|
|
36
|
-
ks: string;
|
|
37
|
-
}
|
|
38
|
-
export declare const kalturaVideoPlayerToolRuntimeSettingsSchema: ValidatorSchema;
|