@unisphere/genie-types 1.20.0 → 1.22.0-tools.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.
Files changed (43) hide show
  1. package/index.esm.js +239 -1019
  2. package/package.json +3 -3
  3. package/src/index.d.ts +2 -9
  4. package/src/lib/application-runtime/runtime-types.d.ts +6 -2
  5. package/src/lib/avatar-runtime/lobby-visual-types.d.ts +2 -6
  6. package/src/lib/avatar-runtime/runtime-types.d.ts +4 -1
  7. package/src/lib/{shared/chat-customizations-types.d.ts → chat-customizations-types.d.ts} +2 -2
  8. package/src/lib/chat-runtime/runtime-player-plugin-types.d.ts +1 -6
  9. package/src/lib/chat-runtime/runtime-types.d.ts +2 -7
  10. package/src/lib/chat-runtime/shared-settings.d.ts +17 -4
  11. package/src/lib/chat-runtime/visuals-types.d.ts +7 -7
  12. package/src/lib/content-gallery-tool-runtime/genie-answer-visual-types.d.ts +1 -1
  13. package/src/lib/shared/index.d.ts +0 -2
  14. package/src/lib/types.d.ts +0 -53
  15. package/src/lib/flashcards-tool-runtime/index.d.ts +0 -2
  16. package/src/lib/flashcards-tool-runtime/runtime-types.d.ts +0 -41
  17. package/src/lib/flashcards-tool-runtime/visuals-types.d.ts +0 -52
  18. package/src/lib/followups-tool-runtime/avatar-visual-types.d.ts +0 -27
  19. package/src/lib/followups-tool-runtime/index.d.ts +0 -2
  20. package/src/lib/followups-tool-runtime/runtime-types.d.ts +0 -49
  21. package/src/lib/gen-ui-components-tool-runtime/card-visual-types.d.ts +0 -39
  22. package/src/lib/gen-ui-components-tool-runtime/index.d.ts +0 -6
  23. package/src/lib/gen-ui-components-tool-runtime/login-visual-types.d.ts +0 -10
  24. package/src/lib/gen-ui-components-tool-runtime/markdown-visual-types.d.ts +0 -7
  25. package/src/lib/gen-ui-components-tool-runtime/player-visual-types.d.ts +0 -25
  26. package/src/lib/gen-ui-components-tool-runtime/questions-presets-visual-types.d.ts +0 -9
  27. package/src/lib/gen-ui-components-tool-runtime/runtime-types.d.ts +0 -13
  28. package/src/lib/gen-ui-composer-tool-runtime/avatar-visual-types.d.ts +0 -50
  29. package/src/lib/gen-ui-composer-tool-runtime/index.d.ts +0 -2
  30. package/src/lib/gen-ui-composer-tool-runtime/runtime-types.d.ts +0 -13
  31. package/src/lib/gtc-agenda-list-tool-runtime/genie-answer-visual-types.d.ts +0 -23
  32. package/src/lib/gtc-agenda-list-tool-runtime/index.d.ts +0 -2
  33. package/src/lib/gtc-agenda-list-tool-runtime/runtime-types.d.ts +0 -27
  34. package/src/lib/gtc-agenda-tool-runtime/genie-answer-visual-types.d.ts +0 -16
  35. package/src/lib/gtc-agenda-tool-runtime/index.d.ts +0 -2
  36. package/src/lib/gtc-agenda-tool-runtime/runtime-types.d.ts +0 -27
  37. package/src/lib/nvidia-2026-event-tool-runtime/index.d.ts +0 -1
  38. package/src/lib/nvidia-2026-event-tool-runtime/runtime-types.d.ts +0 -82
  39. package/src/lib/sources-tool-runtime/index.d.ts +0 -1
  40. package/src/lib/sources-tool-runtime/runtime-types.d.ts +0 -57
  41. package/src/lib/summary-tool-runtime/index.d.ts +0 -1
  42. package/src/lib/summary-tool-runtime/runtime-types.d.ts +0 -79
  43. /package/src/lib/{shared/general-visual-types.d.ts → general-visual-types.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/genie-types",
3
- "version": "1.20.0",
3
+ "version": "1.22.0-tools.0",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -9,8 +9,8 @@
9
9
  },
10
10
  "types": "./src/index.d.ts",
11
11
  "dependencies": {
12
- "@kaltura-sdk/rtc-core": "^1.25.12",
13
- "@unisphere/core": "^1.98.0",
12
+ "@kaltura-sdk/rtc-core": "^1.25.13",
13
+ "@unisphere/core": "^1.99.0",
14
14
  "@unisphere/runtime": "^1.97.0"
15
15
  },
16
16
  "module": "./index.esm.js",
package/src/index.d.ts CHANGED
@@ -1,19 +1,12 @@
1
1
  export * from './lib/widget-types';
2
2
  export * from './lib/chat-runtime';
3
- export * from './lib/flashcards-tool-runtime';
4
- export * from './lib/followups-tool-runtime';
5
- export * from './lib/sources-tool-runtime';
6
3
  export * from './lib/shared';
7
4
  export * from './lib/types';
8
5
  export * from './lib/avatar-runtime';
9
6
  export * from './lib/admin-runtime';
10
7
  export * from './lib/admin-demo-runtime';
11
8
  export * from './lib/application-runtime';
12
- export * from './lib/summary-tool-runtime';
13
- export * from './lib/nvidia-2026-event-tool-runtime';
14
9
  export * from './lib/kaltura-video-player-tool-runtime';
15
- export * from './lib/gtc-agenda-tool-runtime';
16
- export * from './lib/gtc-agenda-list-tool-runtime';
17
- export * from './lib/gen-ui-composer-tool-runtime';
18
- export * from './lib/gen-ui-components-tool-runtime';
19
10
  export * from './lib/content-gallery-tool-runtime';
11
+ export * from './lib/chat-customizations-types';
12
+ export * from './lib/general-visual-types';
@@ -37,8 +37,12 @@ export interface ApplicationRuntimeSettings {
37
37
  ks: string;
38
38
  /** Kaltura server URI */
39
39
  kalturaServerURI: string;
40
- /** Callback function to generate source URLs with entry ID and optional start time */
41
- getSourceUrl?: ({ entryId, startTime, }: {
40
+ /** Callback function to generate source URLs for an entry or category */
41
+ getSourceUrl?: (params: {
42
+ type: 'category';
43
+ categoryId: string;
44
+ } | {
45
+ type?: 'entry';
42
46
  entryId: string;
43
47
  startTime?: number;
44
48
  }) => string;
@@ -25,10 +25,8 @@ import { ValidatorSchema } from '@unisphere/core';
25
25
  export interface AvatarRuntimeLobbyVisualSettings {
26
26
  /** Settings schema version */
27
27
  schemaVersion?: string;
28
- /** Display variant: 'default' for full lobby, 'mini' for compact, 'buttonOnly' for minimal, 'agent' for agent-specific UI */
29
- variant?: 'default' | 'mini' | 'buttonOnly' | 'agent';
30
- /** Enable translucent/semi-transparent UI elements */
31
- isTranslucent?: boolean;
28
+ /** Display variant: 'agent' for agent-specific UI */
29
+ variant?: 'agent';
32
30
  /** Thread identifier for resuming conversations */
33
31
  threadId?: string;
34
32
  /** Message identifier for context */
@@ -44,8 +42,6 @@ export interface AvatarRuntimeLobbyVisualSettings {
44
42
  /** Styles applied to the outer wrapper (mini variant only) */
45
43
  wrapper?: Record<string, string | number>;
46
44
  };
47
- /** Hide the start conversation button (e.g. when interaction limit is exceeded) */
48
- hideStartButton?: boolean;
49
45
  /** When provided, overrides the default avatar launch behavior on click */
50
46
  onOpen?: () => void;
51
47
  }
@@ -14,7 +14,10 @@ export type AvatarRuntime = UnisphereRuntimeBaseType<AvatarRuntimeSettings> & {
14
14
  readonly widgetName: typeof widgetName;
15
15
  readonly runtimeName: typeof AvatarRuntimeName;
16
16
  /** Establish connection to the avatar service */
17
- connect(): void;
17
+ connect(params?: {
18
+ threadId?: string;
19
+ messageId?: string;
20
+ }): void;
18
21
  /** Disconnect from the avatar service */
19
22
  disconnect(): void;
20
23
  /** Observable connection status */
@@ -1,6 +1,6 @@
1
1
  import { ValidatorSchema } from '@unisphere/core';
2
- import { ChatBranding } from '../chat-runtime';
3
- import { AnswerTypeEnum } from '../types';
2
+ import { ChatBranding } from './chat-runtime';
3
+ import { AnswerTypeEnum } from './types';
4
4
  /**
5
5
  * Chat UI customization options.
6
6
  *
@@ -44,12 +44,7 @@ export interface ChatRuntimePlayerPlugin extends UnisphereRuntimeBaseType<ChatRu
44
44
  */
45
45
  export interface ChatRuntimePlayerPluginSettings {
46
46
  /** Context for the chat session */
47
- context?: {
48
- /** Context type - 'entry' for media entries, 'category' for content categories */
49
- type: 'entry' | 'category';
50
- /** Media entry ID or category ID for context-aware conversations */
51
- id: string;
52
- };
47
+ context?: GlobalChatSettings['context'];
53
48
  /** Kaltura session token for authentication */
54
49
  ks?: string;
55
50
  /** Kaltura partner ID */
@@ -1,7 +1,7 @@
1
1
  import { UnisphereRuntimeBaseType } from '@unisphere/runtime';
2
2
  import { ValidatorSchema } from '@unisphere/core';
3
3
  import { widgetName } from '../widget-types';
4
- import { GlobalChatSettings } from './shared-settings';
4
+ import { ChatContext, GlobalChatSettings } from './shared-settings';
5
5
  /** Runtime name constant for chat experiences */
6
6
  export declare const ChatRuntimeName: "chat";
7
7
  /**
@@ -65,12 +65,7 @@ export interface ChatRuntimeSettings {
65
65
  /** Kaltura partner ID */
66
66
  partnerId?: string;
67
67
  /** Context for the chat session */
68
- context?: {
69
- /** Context type - 'entry' for media entries, 'category' for content categories */
70
- type: 'entry' | 'category';
71
- /** Media entry ID or category ID for context-aware conversations */
72
- id: string;
73
- };
68
+ context?: ChatContext;
74
69
  /** Enable agent mode for advanced AI features */
75
70
  agentMode?: boolean;
76
71
  /** Avatar display mode: 'dialog' for modal or 'contained' for embedded */
@@ -13,10 +13,16 @@ export declare const CHAT_DEFAULT_CAPABILITIES: GenieCapabilities;
13
13
  export declare const AVATAR_DEFAULT_CAPABILITIES: GenieCapabilities;
14
14
  export declare const getChatDefaultCapabilities: (context?: ChatContext) => GenieCapabilities;
15
15
  export declare const getAvatarDefaultCapabilities: (context?: ChatContext) => GenieCapabilities;
16
- export interface ChatContext {
17
- type: 'entry' | 'category';
16
+ export type ChatContext = {
17
+ type: 'entry';
18
18
  id: string;
19
- }
19
+ imageUrl?: string;
20
+ title?: string;
21
+ } | {
22
+ type: 'category' | 'ancestor-category';
23
+ id: string;
24
+ title?: string;
25
+ };
20
26
  /**
21
27
  * Branding configuration for chat UI.
22
28
  */
@@ -72,6 +78,8 @@ export type AvatarIntegration = {
72
78
  } | {
73
79
  /** Configuration type: 'byKS' for automatic setup using Kaltura session */
74
80
  type: 'byKS';
81
+ /** Loading video URL displayed during initialization */
82
+ loadingVideoURL?: string;
75
83
  /** Preview image URL displayed before avatar loads */
76
84
  previewImageUrl?: string;
77
85
  };
@@ -119,8 +127,12 @@ export interface GlobalChatSettings {
119
127
  context?: ChatContext;
120
128
  /** Genie capability overrides — defaults applied per API if absent */
121
129
  capabilities?: GenieCapabilities;
122
- /** Callback function to generate source URLs with entry ID and optional start time */
130
+ /** Callback function to generate source URLs for an entry or category */
123
131
  getSourceUrl?: (params: {
132
+ type: 'category';
133
+ categoryId: string;
134
+ } | {
135
+ type?: 'entry';
124
136
  entryId: string;
125
137
  startTime?: number;
126
138
  }) => string;
@@ -143,6 +155,7 @@ export interface GlobalChatSettings {
143
155
  kaltura?: KalturaIntegration;
144
156
  };
145
157
  }
158
+ export declare const chatContextSchema: ValidatorSchema;
146
159
  export declare const integrationsSchema: ValidatorSchema;
147
160
  export declare const shareUrlSchema: ValidatorSchema;
148
161
  export declare const getSourceUrlSchema: ValidatorSchema;
@@ -1,5 +1,6 @@
1
1
  import { ValidatorSchema } from '@unisphere/core';
2
- import { ChatCustomization } from '../shared/chat-customizations-types';
2
+ import { ChatCustomization } from '../chat-customizations-types';
3
+ import { ChatContext } from './shared-settings';
3
4
  import { AnswerTypeEnum } from '../types';
4
5
  /**
5
6
  * Visual settings for page-embedded chat experiences.
@@ -21,6 +22,8 @@ export interface PageVisualSettings {
21
22
  scroll?: 'body' | 'container' | 'modal';
22
23
  /** Custom UI styling and behavior options */
23
24
  customization?: ChatCustomization;
25
+ /** Context for the chat session — host-provided, not user-controllable */
26
+ context?: Pick<ChatContext, 'type' | 'id'>;
24
27
  }
25
28
  /**
26
29
  * Visual settings for banner/hero-style chat landing pages.
@@ -110,12 +113,7 @@ export interface ContainedVisualSettings {
110
113
  /** Scroll container mode: 'body' for page scroll, 'container' for internal scroll, 'modal' for modal dialog */
111
114
  scroll?: 'body' | 'container' | 'modal';
112
115
  /** Context for the chat session */
113
- context?: {
114
- /** Context type - 'entry' for media entries, 'category' for content categories */
115
- type: 'entry' | 'category' | 'ancestor-category';
116
- /** Media entry ID or category ID for context-aware conversations */
117
- id: string;
118
- };
116
+ context?: ChatContext;
119
117
  /** Type of close button to display in the header */
120
118
  closeButtonType?: 'none' | 'drawer' | 'close';
121
119
  }
@@ -124,6 +122,7 @@ export type FloaterCTAVisualSettings = {
124
122
  position?: 'bottom-right' | 'bottom-center' | 'bottom-left';
125
123
  mode?: 'chat' | 'everywhere';
126
124
  openByDefault?: boolean;
125
+ context?: ChatContext;
127
126
  } & {
128
127
  type?: 'button';
129
128
  text?: string;
@@ -132,6 +131,7 @@ export type FloaterCTAVisualSettings = {
132
131
  export interface FloaterVisualSettings {
133
132
  schemaVersion?: '1';
134
133
  mode?: 'chat' | 'everywhere';
134
+ context?: ChatContext;
135
135
  }
136
136
  export declare const floaterVisualSettingsSchema: ValidatorSchema;
137
137
  export declare const floaterCTAVisualSettingsSchema: ValidatorSchema;
@@ -1,5 +1,5 @@
1
1
  import { ValidatorSchema } from '@unisphere/core';
2
- import { BlockVisualContext } from '../shared/general-visual-types';
2
+ import { BlockVisualContext } from '../general-visual-types';
3
3
  import { Slide } from './shared-visual-types';
4
4
  export interface ContentGalleryToolRuntimeGenieAnswerVisualSettings {
5
5
  schemaVersion?: string;
@@ -1,3 +1 @@
1
1
  export * from './chat-tools-service-types';
2
- export * from './general-visual-types';
3
- export * from './chat-customizations-types';
@@ -1,4 +1,3 @@
1
- import { BlockVisualContext } from './shared/general-visual-types';
2
1
  type SourceItemBaseType = {
3
2
  entry_id: string;
4
3
  title: string;
@@ -33,58 +32,6 @@ export type SourcesItemType = VideoSourceItemType | DocumentSourceItemType | Web
33
32
  * Status values for Unisphere tools.
34
33
  */
35
34
  export type UnisphereToolStatuses = 'loading' | 'ready' | 'error';
36
- /**
37
- * Content data structure for responses.
38
- */
39
- export type ContentDataType = {
40
- /** Block visual context */
41
- blockContext?: BlockVisualContext;
42
- /** Content title */
43
- title?: string;
44
- /** Content summary */
45
- summary?: string;
46
- /** Follow-up questions */
47
- followups?: string[];
48
- /** Key points with citations */
49
- keypoints?: CardsDataType[];
50
- };
51
- /**
52
- * Video clip data with timestamps and metadata.
53
- */
54
- export type CardsVideoDataType = {
55
- /** End time in seconds */
56
- end_time?: number;
57
- /** Kaltura entry ID */
58
- entry_id?: string;
59
- /** Source type */
60
- type?: 'CAPTION' | 'OCR' | 'DOCUMENT' | 'EXTERNAL';
61
- /** Last index */
62
- last_index?: number;
63
- /** Start index */
64
- start_index?: number;
65
- /** Start time in seconds */
66
- start_time?: number;
67
- /** Thumbnail URL */
68
- thumbnail?: string;
69
- /** Video link */
70
- video_link?: string;
71
- /** Clip title */
72
- title?: string;
73
- };
74
- /**
75
- * Card data with title, summary, and citations.
76
- */
77
- export type CardsDataType = {
78
- /** Card title */
79
- title?: string;
80
- /** Card summary */
81
- summary?: string;
82
- /** Citation information */
83
- citation?: {
84
- /** Video clips */
85
- clips?: CardsVideoDataType[];
86
- };
87
- };
88
35
  /**
89
36
  * Answer type options for Genie responses.
90
37
  */
@@ -1,2 +0,0 @@
1
- export * from './runtime-types';
2
- export * from './visuals-types';
@@ -1,41 +0,0 @@
1
- import { UnisphereRuntimeBaseType } from '@unisphere/runtime';
2
- import { ValidatorSchema } from '@unisphere/core';
3
- import { widgetName } from '../widget-types';
4
- import { ChatCustomization } from '../shared/chat-customizations-types';
5
- /** Runtime name constant for flashcards tool */
6
- export declare const FlashcardsToolRuntimeName: "flashcards-tool";
7
- /**
8
- * Flashcards tool runtime interface for educational study aids.
9
- *
10
- * Provides interactive flashcard experiences for learning and knowledge reinforcement.
11
- */
12
- export interface FlashcardsToolRuntime extends UnisphereRuntimeBaseType<FlashcardsToolRuntimeSettings> {
13
- readonly widgetName: typeof widgetName;
14
- readonly runtimeName: typeof FlashcardsToolRuntimeName;
15
- }
16
- /**
17
- * Configuration settings for the flashcards tool runtime.
18
- *
19
- * @example
20
- * Basic flashcards setup:
21
- * ```typescript
22
- * const settings: FlashcardsToolRuntimeSettings = {};
23
- * ```
24
- *
25
- * @example
26
- * With custom UI styling:
27
- * ```typescript
28
- * const settings: FlashcardsToolRuntimeSettings = {
29
- * customization: {
30
- * // Custom chat UI settings
31
- * }
32
- * };
33
- * ```
34
- */
35
- export interface FlashcardsToolRuntimeSettings {
36
- /** Settings schema version, defaults to '1' */
37
- schemaVersion?: '1';
38
- /** Custom UI styling and behavior options */
39
- customization?: ChatCustomization;
40
- }
41
- export declare const flashcardsToolRuntimeSettingsSchema: ValidatorSchema;
@@ -1,52 +0,0 @@
1
- import { ValidatorSchema } from '@unisphere/core';
2
- import { CardsVideoDataType } from '../types';
3
- import { BlockVisualContext } from '../shared/general-visual-types';
4
- /**
5
- * Visual settings for flashcard Genie answer display.
6
- *
7
- * Configures how flashcard answers are rendered, including title, summary,
8
- * and key points with video citations.
9
- *
10
- * @example
11
- * ```typescript
12
- * const visualSettings: GenieAnswerVisualSettings = {
13
- * title: 'Key Concepts',
14
- * summary: 'Main ideas from the lesson',
15
- * keypoints: [
16
- * {
17
- * title: 'Introduction',
18
- * summary: 'Overview of the topic',
19
- * citation: {
20
- * clips: [{
21
- * entry_id: 'video_123',
22
- * start_time: 10,
23
- * end_time: 30,
24
- * thumbnail: 'https://example.com/thumb.jpg'
25
- * }]
26
- * }
27
- * }
28
- * ]
29
- * };
30
- * ```
31
- */
32
- export interface GenieAnswerVisualSettings {
33
- /** Visual block context for rendering */
34
- blockContext?: BlockVisualContext;
35
- /** Title for the answer display */
36
- title?: string;
37
- /** Summary text for the answer */
38
- summary?: string;
39
- /** Array of key points with optional video citations */
40
- keypoints?: {
41
- /** Title of the key point */
42
- title?: string;
43
- /** Summary text for the key point */
44
- summary?: string;
45
- /** Video citations supporting this key point */
46
- citation?: {
47
- /** Array of video clip references */
48
- clips?: CardsVideoDataType[];
49
- };
50
- }[];
51
- }
52
- export declare const genieAnswerVisualSettingsSchema: ValidatorSchema;
@@ -1,27 +0,0 @@
1
- import { ValidatorSchema } from '@unisphere/core';
2
- import { BlockVisualContext } from '../shared';
3
- /**
4
- * Visual settings for follow-up questions in avatar mode.
5
- *
6
- * @example
7
- * ```typescript
8
- * const visualSettings: FollowupsToolRuntimeAvatarVisualSettings = {
9
- * questions: [
10
- * 'Can you explain more?',
11
- * 'What are the next steps?'
12
- * ],
13
- * onAction: (data) => console.log('Action triggered:', data)
14
- * };
15
- * ```
16
- */
17
- export interface FollowupsToolRuntimeAvatarVisualSettings {
18
- /** Settings schema version */
19
- schemaVersion?: string;
20
- /** Visual block context for rendering */
21
- blockContext?: BlockVisualContext;
22
- /** Array of suggested follow-up questions */
23
- questions?: string[];
24
- /** Callback function triggered when user selects a question */
25
- onAction: (data: any) => void;
26
- }
27
- export declare const followupsToolRuntimeAvatarVisualSettingsSchema: ValidatorSchema;
@@ -1,2 +0,0 @@
1
- export * from './runtime-types';
2
- export * from './avatar-visual-types';
@@ -1,49 +0,0 @@
1
- import { ValidatorSchema } from '@unisphere/core';
2
- import { UnisphereRuntimeBaseType } from '@unisphere/runtime';
3
- import { widgetName } from '../widget-types';
4
- import { BlockVisualContext } from '../shared/general-visual-types';
5
- /** Runtime name constant for followups tool */
6
- export declare const FollowupsToolRuntimeName: "followups-tool";
7
- /**
8
- * Followups tool runtime interface for suggested conversation continuations.
9
- *
10
- * Provides AI-generated follow-up questions to guide users deeper into topics.
11
- */
12
- export type FollowupsToolRuntime = UnisphereRuntimeBaseType<FollowupsToolRuntimeSettings> & {
13
- readonly widgetName: typeof widgetName;
14
- readonly runtimeName: typeof FollowupsToolRuntimeName;
15
- };
16
- /**
17
- * Configuration settings for the followups tool runtime.
18
- *
19
- * @example
20
- * ```typescript
21
- * const settings: FollowupsToolRuntimeSettings = {};
22
- * ```
23
- */
24
- export interface FollowupsToolRuntimeSettings {
25
- /** Settings schema version */
26
- schemaVersion?: string;
27
- }
28
- export declare const followupsToolRuntimeSettingsSchema: ValidatorSchema;
29
- /**
30
- * Visual settings for followup questions displayed in Genie answers.
31
- *
32
- * @example
33
- * ```typescript
34
- * const visualSettings: FollowupsToolRuntimeGenieAnswerVisualSettings = {
35
- * questions: [
36
- * 'Tell me more about this topic',
37
- * 'What are some related concepts?',
38
- * 'Can you provide an example?'
39
- * ]
40
- * };
41
- * ```
42
- */
43
- export interface FollowupsToolRuntimeGenieAnswerVisualSettings {
44
- /** Visual block context for rendering */
45
- blockContext?: BlockVisualContext;
46
- /** Array of suggested follow-up questions */
47
- questions?: string[];
48
- }
49
- export declare const followupsToolRuntimeGenieAnswerVisualSettingsSchema: ValidatorSchema;
@@ -1,39 +0,0 @@
1
- /// <reference types="react" />
2
- import { ValidatorSchema } from '@unisphere/core';
3
- export interface CardAction {
4
- label: string;
5
- icon?: React.ReactNode;
6
- onClick: React.MouseEventHandler<HTMLButtonElement>;
7
- }
8
- export type CardMedia = {
9
- type: 'image';
10
- src: string;
11
- alt: string;
12
- placement?: 'left' | 'right';
13
- } | {
14
- type: 'video';
15
- src: string;
16
- placement?: 'left' | 'right';
17
- startTime?: number;
18
- endTime?: number;
19
- } | {
20
- type: 'kaltura';
21
- entryId: string;
22
- kalturaServerURI?: string;
23
- partnerId?: string;
24
- uiConfId?: string;
25
- ks?: string;
26
- placement?: 'left' | 'right';
27
- startTime?: number;
28
- endTime?: number;
29
- };
30
- export interface GenUiComponentsToolRuntimeCardVisualSettings {
31
- schemaVersion?: string;
32
- title?: string;
33
- body?: string;
34
- action?: CardAction;
35
- media?: CardMedia;
36
- loading?: boolean;
37
- isTranslucent?: boolean;
38
- }
39
- export declare const genUiComponentsToolRuntimeCardVisualSettingsSchema: ValidatorSchema;
@@ -1,6 +0,0 @@
1
- export * from './runtime-types';
2
- export * from './card-visual-types';
3
- export * from './markdown-visual-types';
4
- export * from './player-visual-types';
5
- export * from './login-visual-types';
6
- export * from './questions-presets-visual-types';
@@ -1,10 +0,0 @@
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
- onCancel?: () => void;
9
- }
10
- export declare const genUiComponentsToolRuntimeLoginVisualSettingsSchema: ValidatorSchema;
@@ -1,7 +0,0 @@
1
- import { ValidatorSchema } from '@unisphere/core';
2
- export interface GenUiComponentsToolRuntimeMarkdownVisualSettings {
3
- schemaVersion?: string;
4
- content: string;
5
- isTranslucent?: boolean;
6
- }
7
- export declare const genUiComponentsToolRuntimeMarkdownVisualSettingsSchema: ValidatorSchema;
@@ -1,25 +0,0 @@
1
- import { ValidatorSchema } from '@unisphere/core';
2
- export type PlayerSource = {
3
- type: 'native';
4
- src: string;
5
- poster?: string;
6
- startTime?: number;
7
- endTime?: number;
8
- } | {
9
- type: 'kaltura';
10
- entryId: string;
11
- kalturaServerURI?: string;
12
- partnerId?: string;
13
- uiConfId?: string;
14
- ks?: string;
15
- startTime?: number;
16
- endTime?: number;
17
- };
18
- export interface GenUiComponentsToolRuntimePlayerVisualSettings {
19
- schemaVersion?: string;
20
- source: PlayerSource;
21
- title?: string;
22
- loading?: boolean;
23
- isTranslucent?: boolean;
24
- }
25
- export declare const genUiComponentsToolRuntimePlayerVisualSettingsSchema: ValidatorSchema;
@@ -1,9 +0,0 @@
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;
@@ -1,13 +0,0 @@
1
- import { ValidatorSchema } from '@unisphere/core';
2
- import { UnisphereRuntimeBaseType } from '@unisphere/runtime';
3
- import { widgetName } from '../widget-types';
4
- export declare const GenUiComponentsToolRuntimeName: "gen-ui-components-tool";
5
- export type GenUiComponentsToolRuntime = UnisphereRuntimeBaseType<GenUiComponentsToolRuntimeSettings> & {
6
- readonly widgetName: typeof widgetName;
7
- readonly runtimeName: typeof GenUiComponentsToolRuntimeName;
8
- };
9
- export interface GenUiComponentsToolRuntimeSettings {
10
- schemaVersion?: string;
11
- baseVisualSettings?: Record<string, unknown>;
12
- }
13
- export declare const genUiComponentsToolRuntimeSettingsSchema: ValidatorSchema;