@unisphere/genie-types 1.22.0-tools.5 → 1.22.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 +7 -60
- package/package.json +1 -1
- package/src/lib/avatar-runtime/{agent-visual-types.d.ts → floater-visual-types.d.ts} +2 -2
- package/src/lib/avatar-runtime/index.d.ts +1 -2
- package/src/lib/avatar-runtime/runtime-types.d.ts +2 -0
- package/src/lib/chat-runtime/shared-settings.d.ts +2 -0
- package/src/lib/avatar-runtime/lobby-visual-types.d.ts +0 -48
package/index.esm.js
CHANGED
|
@@ -2090,6 +2090,11 @@ const avatarRuntimeSettingsSchema = {
|
|
|
2090
2090
|
value: 'string'
|
|
2091
2091
|
},
|
|
2092
2092
|
context: chatContextSchema,
|
|
2093
|
+
everywhere: {
|
|
2094
|
+
type: 'primitive',
|
|
2095
|
+
value: 'boolean',
|
|
2096
|
+
optional: true
|
|
2097
|
+
},
|
|
2093
2098
|
capabilities: {
|
|
2094
2099
|
type: 'object',
|
|
2095
2100
|
optional: true,
|
|
@@ -2240,65 +2245,7 @@ const avatarRuntimeContainedVisualSettingsSchema = {
|
|
|
2240
2245
|
}
|
|
2241
2246
|
};
|
|
2242
2247
|
|
|
2243
|
-
const
|
|
2244
|
-
type: 'object',
|
|
2245
|
-
properties: {
|
|
2246
|
-
schemaVersion: {
|
|
2247
|
-
type: 'literal',
|
|
2248
|
-
value: '1',
|
|
2249
|
-
optional: true
|
|
2250
|
-
},
|
|
2251
|
-
variant: {
|
|
2252
|
-
type: 'enum',
|
|
2253
|
-
values: ['agent'],
|
|
2254
|
-
optional: true
|
|
2255
|
-
},
|
|
2256
|
-
threadId: {
|
|
2257
|
-
type: 'primitive',
|
|
2258
|
-
value: 'string',
|
|
2259
|
-
optional: true
|
|
2260
|
-
},
|
|
2261
|
-
messageId: {
|
|
2262
|
-
type: 'primitive',
|
|
2263
|
-
value: 'string',
|
|
2264
|
-
optional: true
|
|
2265
|
-
},
|
|
2266
|
-
agentButtonLabel: {
|
|
2267
|
-
type: 'primitive',
|
|
2268
|
-
value: 'string',
|
|
2269
|
-
optional: true
|
|
2270
|
-
},
|
|
2271
|
-
agentSize: {
|
|
2272
|
-
type: 'primitive',
|
|
2273
|
-
value: 'string',
|
|
2274
|
-
optional: true
|
|
2275
|
-
},
|
|
2276
|
-
styles: {
|
|
2277
|
-
type: 'object',
|
|
2278
|
-
properties: {
|
|
2279
|
-
container: {
|
|
2280
|
-
type: 'object',
|
|
2281
|
-
properties: {},
|
|
2282
|
-
allowUnknownProperties: true,
|
|
2283
|
-
optional: true
|
|
2284
|
-
},
|
|
2285
|
-
wrapper: {
|
|
2286
|
-
type: 'object',
|
|
2287
|
-
properties: {},
|
|
2288
|
-
allowUnknownProperties: true,
|
|
2289
|
-
optional: true
|
|
2290
|
-
}
|
|
2291
|
-
},
|
|
2292
|
-
optional: true
|
|
2293
|
-
},
|
|
2294
|
-
onOpen: {
|
|
2295
|
-
type: 'function',
|
|
2296
|
-
optional: true
|
|
2297
|
-
}
|
|
2298
|
-
}
|
|
2299
|
-
};
|
|
2300
|
-
|
|
2301
|
-
const avatarRuntimeAgentVisualSettingsSchema = {
|
|
2248
|
+
const avatarRuntimeFloaterVisualSettingsSchema = {
|
|
2302
2249
|
type: 'object',
|
|
2303
2250
|
properties: {
|
|
2304
2251
|
schemaVersion: {
|
|
@@ -2447,4 +2394,4 @@ const blockVisualContextSchema = {
|
|
|
2447
2394
|
}
|
|
2448
2395
|
};
|
|
2449
2396
|
|
|
2450
|
-
export { AVATAR_DEFAULT_CAPABILITIES, AdminDemoRuntimeName, AdminRuntimeName, AgentUnavailabilityReasons, AnswerModelEnum, AnswerTypeEnum, ApplicationRuntimeName, AvatarConnectionStatus, AvatarRuntimeName, AvatarStatus, CHAT_CONTEXT_TYPE, CHAT_CONTEXT_TYPE_GLOBAL, CHAT_DEFAULT_CAPABILITIES, ChatRuntimeName, DeviceType, DisconnectReasons, adminDemoRuntimeSettingsSchema, adminRuntimeSettingsSchema, applicationRuntimeSettingsSchema,
|
|
2397
|
+
export { AVATAR_DEFAULT_CAPABILITIES, AdminDemoRuntimeName, AdminRuntimeName, AgentUnavailabilityReasons, AnswerModelEnum, AnswerTypeEnum, ApplicationRuntimeName, AvatarConnectionStatus, AvatarRuntimeName, AvatarStatus, CHAT_CONTEXT_TYPE, CHAT_CONTEXT_TYPE_GLOBAL, CHAT_DEFAULT_CAPABILITIES, ChatRuntimeName, DeviceType, DisconnectReasons, adminDemoRuntimeSettingsSchema, adminRuntimeSettingsSchema, applicationRuntimeSettingsSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeFloaterVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, chatContextSchema, chatCustomizationSchema, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, containedVisualSettingsSchema, floaterCTAVisualSettingsSchema, floaterVisualSettingsSchema, getAvatarDefaultCapabilities, getChatDefaultCapabilities, getResolvedRuntimeName, getResolvedWidgetName, getSourceUrlSchema, integrationsSchema, isAvatarConnectionProxyInternalType, pageVisualSettingsSchema, popupVisualSettingsSchema, shareUrlSchema, widgetName };
|
package/package.json
CHANGED
|
@@ -9,10 +9,10 @@ import { ValidatorSchema } from '@unisphere/core';
|
|
|
9
9
|
* };
|
|
10
10
|
* ```
|
|
11
11
|
*/
|
|
12
|
-
export interface
|
|
12
|
+
export interface AvatarRuntimeFloaterVisualSettings {
|
|
13
13
|
/** Settings schema version */
|
|
14
14
|
schemaVersion?: string;
|
|
15
15
|
/** Side of screen where agent panel appears */
|
|
16
16
|
panelSide?: 'left' | 'right';
|
|
17
17
|
}
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const avatarRuntimeFloaterVisualSettingsSchema: ValidatorSchema;
|
|
@@ -3,5 +3,4 @@ export * from './chat-visual-types';
|
|
|
3
3
|
export * from './chat-types';
|
|
4
4
|
export * from './avatar-service-types';
|
|
5
5
|
export * from './contained-visual-types';
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './agent-visual-types';
|
|
6
|
+
export * from './floater-visual-types';
|
|
@@ -99,6 +99,8 @@ export interface AvatarRuntimeSettings {
|
|
|
99
99
|
ks: string;
|
|
100
100
|
/** Context for the avatar session */
|
|
101
101
|
context?: ChatContext;
|
|
102
|
+
/** Whether the avatar is running in everywhere mode */
|
|
103
|
+
everywhere?: boolean;
|
|
102
104
|
/** Genie capability overrides — defaults applied per API if absent */
|
|
103
105
|
capabilities?: GenieCapabilities;
|
|
104
106
|
/** Kaltura server URI */
|
|
@@ -127,6 +127,8 @@ export interface GlobalChatSettings {
|
|
|
127
127
|
ks: string;
|
|
128
128
|
/** Context for the chat session */
|
|
129
129
|
context?: ChatContext;
|
|
130
|
+
/** Whether running in everywhere mode */
|
|
131
|
+
everywhere?: boolean;
|
|
130
132
|
/** Genie capability overrides — defaults applied per API if absent */
|
|
131
133
|
capabilities?: GenieCapabilities;
|
|
132
134
|
/** Callback function to generate source URLs for an entry or category */
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
/**
|
|
3
|
-
* Visual settings for avatar lobby/waiting room display.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* Default lobby:
|
|
7
|
-
* ```typescript
|
|
8
|
-
* const settings: AvatarRuntimeLobbyVisualSettings = {
|
|
9
|
-
* variant: 'default'
|
|
10
|
-
* };
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* Agent variant with customization:
|
|
15
|
-
* ```typescript
|
|
16
|
-
* const settings: AvatarRuntimeLobbyVisualSettings = {
|
|
17
|
-
* variant: 'agent',
|
|
18
|
-
* agentButtonLabel: 'Start Conversation',
|
|
19
|
-
* agentSize: '20rem',
|
|
20
|
-
* isTranslucent: true,
|
|
21
|
-
* threadId: 'thread-123'
|
|
22
|
-
* };
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export interface AvatarRuntimeLobbyVisualSettings {
|
|
26
|
-
/** Settings schema version */
|
|
27
|
-
schemaVersion?: string;
|
|
28
|
-
/** Display variant: 'agent' for agent-specific UI */
|
|
29
|
-
variant?: 'agent';
|
|
30
|
-
/** Thread identifier for resuming conversations */
|
|
31
|
-
threadId?: string;
|
|
32
|
-
/** Message identifier for context */
|
|
33
|
-
messageId?: string;
|
|
34
|
-
/** Agent variant only: label for the start button */
|
|
35
|
-
agentButtonLabel?: string;
|
|
36
|
-
/** Agent variant only: size (width and height) of the card, e.g. '15rem' */
|
|
37
|
-
agentSize?: string;
|
|
38
|
-
/** Inline styles applied to lobby elements */
|
|
39
|
-
styles?: {
|
|
40
|
-
/** Styles applied to the inner container (thumbnail/card) */
|
|
41
|
-
container?: Record<string, string | number>;
|
|
42
|
-
/** Styles applied to the outer wrapper (mini variant only) */
|
|
43
|
-
wrapper?: Record<string, string | number>;
|
|
44
|
-
};
|
|
45
|
-
/** When provided, overrides the default avatar launch behavior on click */
|
|
46
|
-
onOpen?: () => void;
|
|
47
|
-
}
|
|
48
|
-
export declare const avatarRuntimeLobbyVisualSettingsSchema: ValidatorSchema;
|