@unisphere/genie-types 1.16.1 → 1.17.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
@@ -1025,10 +1025,22 @@ const avatarRuntimeLobbyVisualSettingsSchema = {
1025
1025
  value: 'string',
1026
1026
  optional: true
1027
1027
  },
1028
- style: {
1028
+ styles: {
1029
1029
  type: 'object',
1030
- properties: {},
1031
- allowUnknownProperties: true,
1030
+ properties: {
1031
+ container: {
1032
+ type: 'object',
1033
+ properties: {},
1034
+ allowUnknownProperties: true,
1035
+ optional: true
1036
+ },
1037
+ wrapper: {
1038
+ type: 'object',
1039
+ properties: {},
1040
+ allowUnknownProperties: true,
1041
+ optional: true
1042
+ }
1043
+ },
1032
1044
  optional: true
1033
1045
  },
1034
1046
  hideStartButton: {
@@ -1869,6 +1881,7 @@ const slideSchema = {
1869
1881
  type: 'or',
1870
1882
  properties: [videoSlideSchema, textSlideSchema]
1871
1883
  };
1884
+
1872
1885
  const contentGalleryToolRuntimeAvatarVisualSettingsSchema = {
1873
1886
  type: 'object',
1874
1887
  properties: {
@@ -1899,4 +1912,35 @@ const contentGalleryToolRuntimeAvatarVisualSettingsSchema = {
1899
1912
  }
1900
1913
  };
1901
1914
 
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 };
1915
+ const contentGalleryToolRuntimeGenieAnswerVisualSettingsSchema = {
1916
+ type: 'object',
1917
+ properties: {
1918
+ schemaVersion: {
1919
+ type: 'literal',
1920
+ value: '1',
1921
+ optional: true
1922
+ },
1923
+ slides: {
1924
+ type: 'array',
1925
+ items: slideSchema
1926
+ },
1927
+ autoplay: {
1928
+ type: 'primitive',
1929
+ value: 'boolean',
1930
+ optional: true
1931
+ },
1932
+ slideDuration: {
1933
+ type: 'primitive',
1934
+ value: 'number',
1935
+ optional: true
1936
+ },
1937
+ loop: {
1938
+ type: 'primitive',
1939
+ value: 'boolean',
1940
+ optional: true
1941
+ },
1942
+ blockContext: blockVisualContextSchema
1943
+ }
1944
+ };
1945
+
1946
+ 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, contentGalleryToolRuntimeGenieAnswerVisualSettingsSchema, 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, slideSchema, sourcesToolRuntimeGenieAnswerVisualSettingsSchema, sourcesToolRuntimeSettingsSchema, summaryToolRuntimeGenieAnswerVisualSettingsSchema, summaryToolRuntimeSettingsSchema, widgetName };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/genie-types",
3
- "version": "1.16.1",
3
+ "version": "1.17.0",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -37,8 +37,13 @@ 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
+ /** Inline styles applied to lobby elements */
41
+ styles?: {
42
+ /** Styles applied to the inner container (thumbnail/card) */
43
+ container?: Record<string, string | number>;
44
+ /** Styles applied to the outer wrapper (mini variant only) */
45
+ wrapper?: Record<string, string | number>;
46
+ };
42
47
  /** Hide the start conversation button (e.g. when interaction limit is exceeded) */
43
48
  hideStartButton?: boolean;
44
49
  }
@@ -1,27 +1,5 @@
1
1
  import { ValidatorSchema } from '@unisphere/core';
2
- export interface VideoClip {
3
- start_index: number;
4
- last_index: number;
5
- entry_id: string | null;
6
- start_time: number;
7
- end_time: number;
8
- type: string | null;
9
- thumbnail: string | null;
10
- video_link: string | null;
11
- }
12
- export interface VideoSlide {
13
- slide_type: 'video';
14
- text: string | null;
15
- citation: {
16
- clips: VideoClip[];
17
- };
18
- }
19
- export interface TextSlide {
20
- slide_type: 'text';
21
- text: string;
22
- citation: null;
23
- }
24
- export type Slide = VideoSlide | TextSlide;
2
+ import { Slide } from './shared-visual-types';
25
3
  export interface ContentGalleryToolRuntimeAvatarVisualSettings {
26
4
  schemaVersion?: string;
27
5
  slides: Slide[];
@@ -0,0 +1,12 @@
1
+ import { ValidatorSchema } from '@unisphere/core';
2
+ import { BlockVisualContext } from '../shared/general-visual-types';
3
+ import { Slide } from './shared-visual-types';
4
+ export interface ContentGalleryToolRuntimeGenieAnswerVisualSettings {
5
+ schemaVersion?: string;
6
+ slides: Slide[];
7
+ autoplay?: boolean;
8
+ slideDuration?: number;
9
+ loop?: boolean;
10
+ blockContext?: BlockVisualContext;
11
+ }
12
+ export declare const contentGalleryToolRuntimeGenieAnswerVisualSettingsSchema: ValidatorSchema;
@@ -1,2 +1,4 @@
1
1
  export * from './runtime-types';
2
2
  export * from './avatar-visual-types';
3
+ export * from './genie-answer-visual-types';
4
+ export * from './shared-visual-types';
@@ -0,0 +1,32 @@
1
+ import { ValidatorSchema } from '@unisphere/core';
2
+ export interface VideoClip {
3
+ start_index: number;
4
+ last_index: number;
5
+ entry_id: string | null;
6
+ start_time: number;
7
+ end_time: number;
8
+ type: string | null;
9
+ thumbnail: string | null;
10
+ video_link: string | null;
11
+ }
12
+ export interface VideoSlide {
13
+ slide_type: 'video';
14
+ text: string | null;
15
+ citation: {
16
+ clips: VideoClip[];
17
+ };
18
+ }
19
+ export interface TextSlide {
20
+ slide_type: 'text';
21
+ text: string;
22
+ citation: null;
23
+ }
24
+ export type Slide = VideoSlide | TextSlide;
25
+ export type ContentGalleryToolVisualsBaseSettings = {
26
+ schemaVersion?: string;
27
+ slides: Slide[];
28
+ autoplay?: boolean;
29
+ slideDuration?: number;
30
+ loop?: boolean;
31
+ };
32
+ export declare const slideSchema: ValidatorSchema;