@unisphere/genie-types 1.19.0 → 1.19.3

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
@@ -1085,9 +1085,7 @@ const getChatDefaultCapabilities = context => {
1085
1085
  use_knowledge_base: 'off',
1086
1086
  use_content_search: 'off',
1087
1087
  use_get_entry_content: 'off',
1088
- generate_followup_questions: 'off',
1089
- include_sources: 'off',
1090
- use_related_files: 'off'
1088
+ include_sources: 'off'
1091
1089
  });
1092
1090
  }
1093
1091
  return CHAT_DEFAULT_CAPABILITIES;
@@ -1316,6 +1314,7 @@ const chatRuntimePlayerPluginSettingsSchema = {
1316
1314
  kalturaServerURI: {
1317
1315
  type: 'primitive',
1318
1316
  value: 'string',
1317
+ optional: true,
1319
1318
  deprecationMessage: 'This field is no longer required and will be ignored if provided'
1320
1319
  },
1321
1320
  partnerId: {
@@ -1518,7 +1517,62 @@ const chatCustomizationSchema = {
1518
1517
  }
1519
1518
  };
1520
1519
 
1521
- const everywhereVisualSettingsSchema = {
1520
+ const floaterVisualSettingsSchema = {
1521
+ type: 'object',
1522
+ properties: {
1523
+ schemaVersion: {
1524
+ type: 'literal',
1525
+ value: '1',
1526
+ optional: true
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 = {
1522
1576
  type: 'object',
1523
1577
  properties: {
1524
1578
  schemaVersion: {
@@ -1526,6 +1580,11 @@ const everywhereVisualSettingsSchema = {
1526
1580
  value: '1',
1527
1581
  optional: true
1528
1582
  },
1583
+ mode: {
1584
+ type: 'enum',
1585
+ values: ['chat', 'everywhere'],
1586
+ optional: true
1587
+ },
1529
1588
  customization: chatCustomizationSchema,
1530
1589
  onRequestClose: {
1531
1590
  type: 'function',
@@ -1558,6 +1617,11 @@ const everywhereVisualSettingsSchema = {
1558
1617
  value: 'string'
1559
1618
  }
1560
1619
  }
1620
+ },
1621
+ closeButtonType: {
1622
+ type: 'enum',
1623
+ values: ['none', 'drawer', 'close'],
1624
+ optional: true
1561
1625
  }
1562
1626
  }
1563
1627
  };
@@ -2271,6 +2335,10 @@ const avatarRuntimeLobbyVisualSettingsSchema = {
2271
2335
  type: 'primitive',
2272
2336
  value: 'boolean',
2273
2337
  optional: true
2338
+ },
2339
+ onOpen: {
2340
+ type: 'function',
2341
+ optional: true
2274
2342
  }
2275
2343
  }
2276
2344
  };
@@ -3167,4 +3235,4 @@ const contentGalleryToolRuntimeGenieAnswerVisualSettingsSchema = {
3167
3235
  }
3168
3236
  };
3169
3237
 
3170
- 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.0",
3
+ "version": "1.19.3",
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;