@unisphere/genie-types 1.15.0 → 1.16.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 CHANGED
@@ -313,6 +313,23 @@ const chatCustomizationSchema = {
313
313
  values: ['body', 'container', 'modal'],
314
314
  optional: true
315
315
  },
316
+ layouts: {
317
+ type: 'object',
318
+ optional: true,
319
+ allowUnknownProperties: true,
320
+ properties: {
321
+ avatar: {
322
+ type: 'primitive',
323
+ value: 'boolean',
324
+ optional: true
325
+ },
326
+ chat: {
327
+ type: 'primitive',
328
+ value: 'boolean',
329
+ optional: true
330
+ }
331
+ }
332
+ },
316
333
  initialPage: {
317
334
  type: 'object',
318
335
  optional: true,
@@ -1008,6 +1025,12 @@ const avatarRuntimeLobbyVisualSettingsSchema = {
1008
1025
  value: 'string',
1009
1026
  optional: true
1010
1027
  },
1028
+ style: {
1029
+ type: 'object',
1030
+ properties: {},
1031
+ allowUnknownProperties: true,
1032
+ optional: true
1033
+ },
1011
1034
  hideStartButton: {
1012
1035
  type: 'primitive',
1013
1036
  value: 'boolean',
@@ -1316,6 +1339,11 @@ const genUiComposerToolRuntimeAvatarVisualSettingsSchema = {
1316
1339
  value: '1',
1317
1340
  optional: true
1318
1341
  },
1342
+ layoutHint: {
1343
+ type: 'primitive',
1344
+ value: 'string',
1345
+ optional: true
1346
+ },
1319
1347
  layout: {
1320
1348
  type: 'object',
1321
1349
  optional: true,
@@ -1679,6 +1707,55 @@ const genUiComponentsToolRuntimePlayerVisualSettingsSchema = {
1679
1707
  }
1680
1708
  };
1681
1709
 
1710
+ const genUiComponentsToolRuntimeLoginVisualSettingsSchema = {
1711
+ type: 'object',
1712
+ properties: {
1713
+ schemaVersion: {
1714
+ type: 'literal',
1715
+ value: '1',
1716
+ optional: true
1717
+ },
1718
+ title: {
1719
+ type: 'primitive',
1720
+ value: 'string',
1721
+ optional: true
1722
+ },
1723
+ subtitle: {
1724
+ type: 'primitive',
1725
+ value: 'string',
1726
+ optional: true
1727
+ }
1728
+ }
1729
+ };
1730
+
1731
+ const genUiComponentsToolRuntimeQuestionsPresetsVisualSettingsSchema = {
1732
+ type: 'object',
1733
+ properties: {
1734
+ schemaVersion: {
1735
+ type: 'literal',
1736
+ value: '1',
1737
+ optional: true
1738
+ },
1739
+ questions: {
1740
+ type: 'array',
1741
+ optional: true,
1742
+ items: {
1743
+ type: 'primitive',
1744
+ value: 'string'
1745
+ }
1746
+ },
1747
+ isTranslucent: {
1748
+ type: 'primitive',
1749
+ value: 'boolean',
1750
+ optional: true
1751
+ },
1752
+ onSelect: {
1753
+ type: 'function',
1754
+ optional: true
1755
+ }
1756
+ }
1757
+ };
1758
+
1682
1759
  const ContentGalleryToolRuntimeName = 'content-gallery-tool';
1683
1760
  const contentGalleryToolRuntimeSettingsSchema = {
1684
1761
  type: 'object',
@@ -1822,4 +1899,4 @@ const contentGalleryToolRuntimeAvatarVisualSettingsSchema = {
1822
1899
  }
1823
1900
  };
1824
1901
 
1825
- export { AdminDemoRuntimeName, AdminRuntimeName, AgentUnavailabilityReasons, AnswerModelEnum, AnswerTypeEnum, ApplicationRuntimeName, AvatarConnectionStatus, AvatarRuntimeName, AvatarStatus, ChatRuntimeName, ContentGalleryToolRuntimeName, DeviceType, DisconnectReasons, FlashcardsToolRuntimeName, FollowupsToolRuntimeName, GenUiComponentsToolRuntimeName, GenUiComposerToolRuntimeName, GtcAgendaListToolRuntimeName, GtcAgendaToolRuntimeName, KalturaVideoPlayerToolRuntimeName, Nvidia2026EventToolRuntimeName, SourcesToolRuntimeName, SummaryToolRuntimeName, adminDemoRuntimeSettingsSchema, adminRuntimeSettingsSchema, applicationRuntimeSettingsSchema, avatarRuntimeAgentVisualSettingsSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeLobbyVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, chatCustomizationSchema, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, contentGalleryToolRuntimeAvatarVisualSettingsSchema, contentGalleryToolRuntimeSettingsSchema, flashcardsToolRuntimeSettingsSchema, followupsToolRuntimeAvatarVisualSettingsSchema, followupsToolRuntimeGenieAnswerVisualSettingsSchema, followupsToolRuntimeSettingsSchema, genUiComponentsToolRuntimeCardVisualSettingsSchema, genUiComponentsToolRuntimeMarkdownVisualSettingsSchema, genUiComponentsToolRuntimePlayerVisualSettingsSchema, genUiComponentsToolRuntimeSettingsSchema, genUiComposerToolRuntimeAvatarVisualSettingsSchema, genUiComposerToolRuntimeSettingsSchema, genieAnswerVisualSettingsSchema, getSourceUrlSchema, gtcAgendaListToolRuntimeAvatarVisualSettingsSchema, gtcAgendaListToolRuntimeSettingsSchema, gtcAgendaToolRuntimeAvatarVisualSettingsSchema, gtcAgendaToolRuntimeSettingsSchema, integrationsSchema, isAvatarConnectionProxyInternalType, kalturaVideoPlayerToolRuntimeAvatarVisualSettingsSchema, kalturaVideoPlayerToolRuntimeSettingsSchema, nvidia2026EventToolRuntimeSettingsSchema, pageVisualSettingsSchema, popupVisualSettingsSchema, shareUrlSchema, sourcesToolRuntimeGenieAnswerVisualSettingsSchema, sourcesToolRuntimeSettingsSchema, summaryToolRuntimeGenieAnswerVisualSettingsSchema, summaryToolRuntimeSettingsSchema, widgetName };
1902
+ export { AdminDemoRuntimeName, AdminRuntimeName, AgentUnavailabilityReasons, AnswerModelEnum, AnswerTypeEnum, ApplicationRuntimeName, AvatarConnectionStatus, AvatarRuntimeName, AvatarStatus, ChatRuntimeName, ContentGalleryToolRuntimeName, DeviceType, DisconnectReasons, FlashcardsToolRuntimeName, FollowupsToolRuntimeName, GenUiComponentsToolRuntimeName, GenUiComposerToolRuntimeName, GtcAgendaListToolRuntimeName, GtcAgendaToolRuntimeName, KalturaVideoPlayerToolRuntimeName, Nvidia2026EventToolRuntimeName, SourcesToolRuntimeName, SummaryToolRuntimeName, adminDemoRuntimeSettingsSchema, adminRuntimeSettingsSchema, applicationRuntimeSettingsSchema, avatarRuntimeAgentVisualSettingsSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeLobbyVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, chatCustomizationSchema, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, contentGalleryToolRuntimeAvatarVisualSettingsSchema, contentGalleryToolRuntimeSettingsSchema, flashcardsToolRuntimeSettingsSchema, followupsToolRuntimeAvatarVisualSettingsSchema, followupsToolRuntimeGenieAnswerVisualSettingsSchema, followupsToolRuntimeSettingsSchema, genUiComponentsToolRuntimeCardVisualSettingsSchema, genUiComponentsToolRuntimeLoginVisualSettingsSchema, genUiComponentsToolRuntimeMarkdownVisualSettingsSchema, genUiComponentsToolRuntimePlayerVisualSettingsSchema, genUiComponentsToolRuntimeQuestionsPresetsVisualSettingsSchema, genUiComponentsToolRuntimeSettingsSchema, genUiComposerToolRuntimeAvatarVisualSettingsSchema, genUiComposerToolRuntimeSettingsSchema, genieAnswerVisualSettingsSchema, getSourceUrlSchema, gtcAgendaListToolRuntimeAvatarVisualSettingsSchema, gtcAgendaListToolRuntimeSettingsSchema, gtcAgendaToolRuntimeAvatarVisualSettingsSchema, gtcAgendaToolRuntimeSettingsSchema, integrationsSchema, isAvatarConnectionProxyInternalType, kalturaVideoPlayerToolRuntimeAvatarVisualSettingsSchema, kalturaVideoPlayerToolRuntimeSettingsSchema, nvidia2026EventToolRuntimeSettingsSchema, pageVisualSettingsSchema, popupVisualSettingsSchema, shareUrlSchema, sourcesToolRuntimeGenieAnswerVisualSettingsSchema, sourcesToolRuntimeSettingsSchema, summaryToolRuntimeGenieAnswerVisualSettingsSchema, summaryToolRuntimeSettingsSchema, widgetName };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/genie-types",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -37,6 +37,8 @@ export interface AvatarRuntimeLobbyVisualSettings {
37
37
  agentButtonLabel?: string;
38
38
  /** Agent variant only: size (width and height) of the card, e.g. '15rem' */
39
39
  agentSize?: string;
40
+ /** Inline styles applied to the root container of any variant */
41
+ style?: Record<string, string | number>;
40
42
  /** Hide the start conversation button (e.g. when interaction limit is exceeded) */
41
43
  hideStartButton?: boolean;
42
44
  }
@@ -2,3 +2,5 @@ export * from './runtime-types';
2
2
  export * from './card-visual-types';
3
3
  export * from './markdown-visual-types';
4
4
  export * from './player-visual-types';
5
+ export * from './login-visual-types';
6
+ export * from './questions-presets-visual-types';
@@ -0,0 +1,9 @@
1
+ import { ValidatorSchema } from '@unisphere/core';
2
+ export interface GenUiComponentsToolRuntimeLoginVisualSettings {
3
+ schemaVersion?: string;
4
+ title?: string;
5
+ subtitle?: string;
6
+ isTranslucent?: boolean;
7
+ onLogin?: (username: string) => void;
8
+ }
9
+ export declare const genUiComponentsToolRuntimeLoginVisualSettingsSchema: ValidatorSchema;
@@ -0,0 +1,9 @@
1
+ import { ValidatorSchema } from '@unisphere/core';
2
+ export interface GenUiComponentsToolRuntimeQuestionsPresetsVisualSettings {
3
+ schemaVersion?: string;
4
+ questions?: string[];
5
+ isTranslucent?: boolean;
6
+ /** Injected at render time by the runtime — not provided by the LLM. */
7
+ onSelect?: (question: string) => void;
8
+ }
9
+ export declare const genUiComponentsToolRuntimeQuestionsPresetsVisualSettingsSchema: ValidatorSchema;
@@ -44,6 +44,7 @@ export interface UnisphereRuntimeConfig {
44
44
  }
45
45
  export interface GenUiComposerToolRuntimeAvatarVisualSettings {
46
46
  schemaVersion?: string;
47
+ layoutHint?: string;
47
48
  layout?: GridLayout;
48
49
  }
49
50
  export declare const genUiComposerToolRuntimeAvatarVisualSettingsSchema: ValidatorSchema;
@@ -81,6 +81,11 @@ export interface ChatCustomization {
81
81
  /** Background image configuration */
82
82
  background?: Background;
83
83
  };
84
+ /** Layout options for the chat interface */
85
+ layouts?: {
86
+ avatar?: boolean;
87
+ chat?: boolean;
88
+ };
84
89
  }
85
90
  /**
86
91
  * Suggested question for initial chat page.
@@ -116,4 +121,5 @@ export type Background = {
116
121
  /** Image URL */
117
122
  url: string;
118
123
  };
124
+ export type ConfiguredCustomizationValues = Pick<ChatCustomization, 'layouts' | 'initialPage'>;
119
125
  export declare const chatCustomizationSchema: ValidatorSchema;