@unisphere/genie-types 1.19.1 → 1.19.4

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
@@ -1314,6 +1314,7 @@ const chatRuntimePlayerPluginSettingsSchema = {
1314
1314
  kalturaServerURI: {
1315
1315
  type: 'primitive',
1316
1316
  value: 'string',
1317
+ optional: true,
1317
1318
  deprecationMessage: 'This field is no longer required and will be ignored if provided'
1318
1319
  },
1319
1320
  partnerId: {
@@ -1516,7 +1517,7 @@ const chatCustomizationSchema = {
1516
1517
  }
1517
1518
  };
1518
1519
 
1519
- const everywhereVisualSettingsSchema = {
1520
+ const floaterVisualSettingsSchema = {
1520
1521
  type: 'object',
1521
1522
  properties: {
1522
1523
  schemaVersion: {
@@ -1524,6 +1525,66 @@ const everywhereVisualSettingsSchema = {
1524
1525
  value: '1',
1525
1526
  optional: true
1526
1527
  },
1528
+ mode: {
1529
+ type: 'enum',
1530
+ values: ['chat', 'everywhere'],
1531
+ optional: true
1532
+ }
1533
+ }
1534
+ };
1535
+ const floaterCTAVisualSettingsSchema = {
1536
+ type: 'object',
1537
+ properties: {
1538
+ schemaVersion: {
1539
+ type: 'literal',
1540
+ value: '1',
1541
+ optional: true
1542
+ },
1543
+ position: {
1544
+ type: 'enum',
1545
+ values: ['bottom-right', 'bottom-center', 'bottom-left'],
1546
+ optional: true
1547
+ },
1548
+ mode: {
1549
+ type: 'enum',
1550
+ values: ['chat', 'everywhere'],
1551
+ optional: true
1552
+ },
1553
+ openByDefault: {
1554
+ type: 'primitive',
1555
+ value: 'boolean',
1556
+ optional: true
1557
+ },
1558
+ type: {
1559
+ type: 'literal',
1560
+ value: 'button',
1561
+ optional: true
1562
+ },
1563
+ text: {
1564
+ type: 'primitive',
1565
+ value: 'string',
1566
+ optional: true
1567
+ },
1568
+ showIcon: {
1569
+ type: 'primitive',
1570
+ value: 'boolean',
1571
+ optional: true
1572
+ }
1573
+ }
1574
+ };
1575
+ const containedVisualSettingsSchema = {
1576
+ type: 'object',
1577
+ properties: {
1578
+ schemaVersion: {
1579
+ type: 'literal',
1580
+ value: '1',
1581
+ optional: true
1582
+ },
1583
+ mode: {
1584
+ type: 'enum',
1585
+ values: ['chat', 'everywhere'],
1586
+ optional: true
1587
+ },
1527
1588
  customization: chatCustomizationSchema,
1528
1589
  onRequestClose: {
1529
1590
  type: 'function',
@@ -1556,6 +1617,11 @@ const everywhereVisualSettingsSchema = {
1556
1617
  value: 'string'
1557
1618
  }
1558
1619
  }
1620
+ },
1621
+ closeButtonType: {
1622
+ type: 'enum',
1623
+ values: ['none', 'drawer', 'close'],
1624
+ optional: true
1559
1625
  }
1560
1626
  }
1561
1627
  };
@@ -2269,6 +2335,10 @@ const avatarRuntimeLobbyVisualSettingsSchema = {
2269
2335
  type: 'primitive',
2270
2336
  value: 'boolean',
2271
2337
  optional: true
2338
+ },
2339
+ onOpen: {
2340
+ type: 'function',
2341
+ optional: true
2272
2342
  }
2273
2343
  }
2274
2344
  };
@@ -3045,17 +3115,17 @@ const clipSchema = {
3045
3115
  type: {
3046
3116
  type: 'primitive',
3047
3117
  value: 'string',
3048
- optional: 'nullable'
3118
+ optional: true
3049
3119
  },
3050
3120
  thumbnail: {
3051
3121
  type: 'primitive',
3052
3122
  value: 'string',
3053
- optional: 'nullable'
3123
+ optional: true
3054
3124
  },
3055
3125
  video_link: {
3056
3126
  type: 'primitive',
3057
3127
  value: 'string',
3058
- optional: 'nullable'
3128
+ optional: true
3059
3129
  }
3060
3130
  }
3061
3131
  };
@@ -3069,7 +3139,7 @@ const videoSlideSchema = {
3069
3139
  text: {
3070
3140
  type: 'primitive',
3071
3141
  value: 'string',
3072
- optional: 'nullable'
3142
+ optional: true
3073
3143
  },
3074
3144
  citation: {
3075
3145
  type: 'object',
@@ -3095,7 +3165,7 @@ const textSlideSchema = {
3095
3165
  },
3096
3166
  citation: {
3097
3167
  type: 'any',
3098
- optional: 'nullable'
3168
+ optional: true
3099
3169
  }
3100
3170
  }
3101
3171
  };
@@ -3165,4 +3235,4 @@ const contentGalleryToolRuntimeGenieAnswerVisualSettingsSchema = {
3165
3235
  }
3166
3236
  };
3167
3237
 
3168
- export { AVATAR_DEFAULT_CAPABILITIES, AdminDemoRuntimeName, AdminRuntimeName, AgentUnavailabilityReasons, AnswerModelEnum, AnswerTypeEnum, ApplicationRuntimeName, AvatarConnectionStatus, AvatarRuntimeName, AvatarStatus, CHAT_DEFAULT_CAPABILITIES, 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, everywhereVisualSettingsSchema, flashcardsToolRuntimeSettingsSchema, followupsToolRuntimeAvatarVisualSettingsSchema, followupsToolRuntimeGenieAnswerVisualSettingsSchema, followupsToolRuntimeSettingsSchema, genUiComponentsToolRuntimeCardVisualSettingsSchema, genUiComponentsToolRuntimeLoginVisualSettingsSchema, genUiComponentsToolRuntimeMarkdownVisualSettingsSchema, genUiComponentsToolRuntimePlayerVisualSettingsSchema, genUiComponentsToolRuntimeQuestionsPresetsVisualSettingsSchema, genUiComponentsToolRuntimeSettingsSchema, genUiComposerToolRuntimeAvatarVisualSettingsSchema, genUiComposerToolRuntimeSettingsSchema, genieAnswerVisualSettingsSchema, getAvatarDefaultCapabilities, getChatDefaultCapabilities, getSourceUrlSchema, gtcAgendaListToolRuntimeAvatarVisualSettingsSchema, gtcAgendaListToolRuntimeSettingsSchema, gtcAgendaToolRuntimeAvatarVisualSettingsSchema, gtcAgendaToolRuntimeSettingsSchema, integrationsSchema, isAvatarConnectionProxyInternalType, kalturaVideoPlayerToolRuntimeAvatarVisualSettingsSchema, kalturaVideoPlayerToolRuntimeSettingsSchema, nvidia2026EventToolRuntimeSettingsSchema, pageVisualSettingsSchema, popupVisualSettingsSchema, shareUrlSchema, slideSchema, sourcesToolRuntimeGenieAnswerVisualSettingsSchema, sourcesToolRuntimeSettingsSchema, summaryToolRuntimeGenieAnswerVisualSettingsSchema, summaryToolRuntimeSettingsSchema, widgetName };
3238
+ export { AVATAR_DEFAULT_CAPABILITIES, AdminDemoRuntimeName, AdminRuntimeName, AgentUnavailabilityReasons, AnswerModelEnum, AnswerTypeEnum, ApplicationRuntimeName, AvatarConnectionStatus, AvatarRuntimeName, AvatarStatus, CHAT_DEFAULT_CAPABILITIES, 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, containedVisualSettingsSchema, contentGalleryToolRuntimeAvatarVisualSettingsSchema, contentGalleryToolRuntimeGenieAnswerVisualSettingsSchema, contentGalleryToolRuntimeSettingsSchema, flashcardsToolRuntimeSettingsSchema, floaterCTAVisualSettingsSchema, floaterVisualSettingsSchema, followupsToolRuntimeAvatarVisualSettingsSchema, followupsToolRuntimeGenieAnswerVisualSettingsSchema, followupsToolRuntimeSettingsSchema, genUiComponentsToolRuntimeCardVisualSettingsSchema, genUiComponentsToolRuntimeLoginVisualSettingsSchema, genUiComponentsToolRuntimeMarkdownVisualSettingsSchema, genUiComponentsToolRuntimePlayerVisualSettingsSchema, genUiComponentsToolRuntimeQuestionsPresetsVisualSettingsSchema, genUiComponentsToolRuntimeSettingsSchema, genUiComposerToolRuntimeAvatarVisualSettingsSchema, genUiComposerToolRuntimeSettingsSchema, genieAnswerVisualSettingsSchema, getAvatarDefaultCapabilities, getChatDefaultCapabilities, 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.19.1",
3
+ "version": "1.19.4",
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.25.8",
12
+ "@kaltura-sdk/rtc-core": "^1.25.11",
13
13
  "@unisphere/core": "^1.97.1",
14
14
  "@unisphere/runtime": "^1.97.0"
15
15
  },
@@ -46,5 +46,7 @@ export interface AvatarRuntimeLobbyVisualSettings {
46
46
  };
47
47
  /** Hide the start conversation button (e.g. when interaction limit is exceeded) */
48
48
  hideStartButton?: boolean;
49
+ /** When provided, overrides the default avatar launch behavior on click */
50
+ onOpen?: () => void;
49
51
  }
50
52
  export declare const avatarRuntimeLobbyVisualSettingsSchema: ValidatorSchema;
@@ -94,9 +94,11 @@ export interface PopupVisualSettings {
94
94
  answerType?: AnswerTypeEnum;
95
95
  };
96
96
  }
97
- export interface EverywhereVisualSettings {
97
+ export interface ContainedVisualSettings {
98
98
  /** Settings schema version */
99
99
  schemaVersion?: '1';
100
+ /** Contained type */
101
+ mode?: 'chat' | 'everywhere';
100
102
  /** Custom UI styling and behavior options */
101
103
  customization?: ChatCustomization;
102
104
  /** Callback invoked when the widget requests to be closed */
@@ -114,8 +116,26 @@ export interface EverywhereVisualSettings {
114
116
  /** Media entry ID or category ID for context-aware conversations */
115
117
  id: string;
116
118
  };
119
+ /** Type of close button to display in the header */
120
+ closeButtonType?: 'none' | 'drawer' | 'close';
117
121
  }
118
- export declare const everywhereVisualSettingsSchema: ValidatorSchema;
122
+ export type FloaterCTAVisualSettings = {
123
+ schemaVersion?: '1';
124
+ position?: 'bottom-right' | 'bottom-center' | 'bottom-left';
125
+ mode?: 'chat' | 'everywhere';
126
+ openByDefault?: boolean;
127
+ } & {
128
+ type?: 'button';
129
+ text?: string;
130
+ showIcon?: boolean;
131
+ };
132
+ export interface FloaterVisualSettings {
133
+ schemaVersion?: '1';
134
+ mode?: 'chat' | 'everywhere';
135
+ }
136
+ export declare const floaterVisualSettingsSchema: ValidatorSchema;
137
+ export declare const floaterCTAVisualSettingsSchema: ValidatorSchema;
138
+ export declare const containedVisualSettingsSchema: ValidatorSchema;
119
139
  export declare const pageVisualSettingsSchema: ValidatorSchema;
120
140
  export declare const bannerVisualSettingsSchema: ValidatorSchema;
121
141
  export declare const popupVisualSettingsSchema: ValidatorSchema;
@@ -2,16 +2,15 @@ import { ValidatorSchema } from '@unisphere/core';
2
2
  export interface VideoClip {
3
3
  start_index: number;
4
4
  last_index: number;
5
- entry_id: string | null;
5
+ entry_id?: string;
6
6
  start_time: number;
7
7
  end_time: number;
8
- type: string | null;
9
- thumbnail: string | null;
10
- video_link: string | null;
8
+ type?: string;
9
+ thumbnail?: string;
10
+ video_link?: string;
11
11
  }
12
12
  export interface VideoSlide {
13
13
  slide_type: 'video';
14
- text: string | null;
15
14
  citation: {
16
15
  clips: VideoClip[];
17
16
  };
@@ -19,7 +18,6 @@ export interface VideoSlide {
19
18
  export interface TextSlide {
20
19
  slide_type: 'text';
21
20
  text: string;
22
- citation: null;
23
21
  }
24
22
  export type Slide = VideoSlide | TextSlide;
25
23
  export type ContentGalleryToolVisualsBaseSettings = {