@unisphere/genie-types 1.21.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.
- package/index.esm.js +46 -877
- package/package.json +2 -2
- package/src/index.d.ts +2 -9
- package/src/lib/{shared/chat-customizations-types.d.ts → chat-customizations-types.d.ts} +2 -2
- package/src/lib/chat-runtime/visuals-types.d.ts +1 -1
- package/src/lib/content-gallery-tool-runtime/genie-answer-visual-types.d.ts +1 -1
- package/src/lib/shared/index.d.ts +0 -2
- package/src/lib/types.d.ts +0 -53
- package/src/lib/flashcards-tool-runtime/index.d.ts +0 -2
- package/src/lib/flashcards-tool-runtime/runtime-types.d.ts +0 -41
- package/src/lib/flashcards-tool-runtime/visuals-types.d.ts +0 -52
- package/src/lib/followups-tool-runtime/avatar-visual-types.d.ts +0 -27
- package/src/lib/followups-tool-runtime/index.d.ts +0 -2
- package/src/lib/followups-tool-runtime/runtime-types.d.ts +0 -49
- package/src/lib/gen-ui-components-tool-runtime/card-visual-types.d.ts +0 -39
- package/src/lib/gen-ui-components-tool-runtime/index.d.ts +0 -6
- package/src/lib/gen-ui-components-tool-runtime/login-visual-types.d.ts +0 -10
- package/src/lib/gen-ui-components-tool-runtime/markdown-visual-types.d.ts +0 -7
- package/src/lib/gen-ui-components-tool-runtime/player-visual-types.d.ts +0 -25
- package/src/lib/gen-ui-components-tool-runtime/questions-presets-visual-types.d.ts +0 -9
- package/src/lib/gen-ui-components-tool-runtime/runtime-types.d.ts +0 -13
- package/src/lib/gen-ui-composer-tool-runtime/avatar-visual-types.d.ts +0 -50
- package/src/lib/gen-ui-composer-tool-runtime/index.d.ts +0 -2
- package/src/lib/gen-ui-composer-tool-runtime/runtime-types.d.ts +0 -13
- package/src/lib/gtc-agenda-list-tool-runtime/genie-answer-visual-types.d.ts +0 -23
- package/src/lib/gtc-agenda-list-tool-runtime/index.d.ts +0 -2
- package/src/lib/gtc-agenda-list-tool-runtime/runtime-types.d.ts +0 -27
- package/src/lib/gtc-agenda-tool-runtime/genie-answer-visual-types.d.ts +0 -16
- package/src/lib/gtc-agenda-tool-runtime/index.d.ts +0 -2
- package/src/lib/gtc-agenda-tool-runtime/runtime-types.d.ts +0 -27
- package/src/lib/nvidia-2026-event-tool-runtime/index.d.ts +0 -1
- package/src/lib/nvidia-2026-event-tool-runtime/runtime-types.d.ts +0 -82
- package/src/lib/sources-tool-runtime/index.d.ts +0 -1
- package/src/lib/sources-tool-runtime/runtime-types.d.ts +0 -57
- package/src/lib/summary-tool-runtime/index.d.ts +0 -1
- package/src/lib/summary-tool-runtime/runtime-types.d.ts +0 -79
- /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.
|
|
3
|
+
"version": "1.22.0-tools.0",
|
|
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.
|
|
12
|
+
"@kaltura-sdk/rtc-core": "^1.25.13",
|
|
13
13
|
"@unisphere/core": "^1.99.0",
|
|
14
14
|
"@unisphere/runtime": "^1.97.0"
|
|
15
15
|
},
|
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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
import { ChatBranding } from '
|
|
3
|
-
import { AnswerTypeEnum } from '
|
|
2
|
+
import { ChatBranding } from './chat-runtime';
|
|
3
|
+
import { AnswerTypeEnum } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* Chat UI customization options.
|
|
6
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
import { ChatCustomization } from '../
|
|
2
|
+
import { ChatCustomization } from '../chat-customizations-types';
|
|
3
3
|
import { ChatContext } from './shared-settings';
|
|
4
4
|
import { AnswerTypeEnum } from '../types';
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
import { BlockVisualContext } from '../
|
|
2
|
+
import { BlockVisualContext } from '../general-visual-types';
|
|
3
3
|
import { Slide } from './shared-visual-types';
|
|
4
4
|
export interface ContentGalleryToolRuntimeGenieAnswerVisualSettings {
|
|
5
5
|
schemaVersion?: string;
|
package/src/lib/types.d.ts
CHANGED
|
@@ -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,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,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,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;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
export interface RowHeight {
|
|
3
|
-
type: 'auto' | 'fixed' | 'fill' | 'percentage';
|
|
4
|
-
value?: number;
|
|
5
|
-
}
|
|
6
|
-
export interface CellWidth {
|
|
7
|
-
type: 'fill' | 'fit' | 'fixed' | 'percentage' | 'custom';
|
|
8
|
-
value?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface GridRow {
|
|
11
|
-
id: string;
|
|
12
|
-
height: RowHeight;
|
|
13
|
-
columns: string;
|
|
14
|
-
cells: GridCell[];
|
|
15
|
-
}
|
|
16
|
-
export interface GridLayout {
|
|
17
|
-
type: 'cssGrid';
|
|
18
|
-
gridTemplateAreas?: string;
|
|
19
|
-
gridTemplateRows?: string;
|
|
20
|
-
gridTemplateColumns?: string;
|
|
21
|
-
gap?: string;
|
|
22
|
-
cells?: GridCell[];
|
|
23
|
-
rows?: GridRow[];
|
|
24
|
-
}
|
|
25
|
-
export interface GridCell {
|
|
26
|
-
id: string;
|
|
27
|
-
name?: string;
|
|
28
|
-
width?: CellWidth;
|
|
29
|
-
rowSpan?: number;
|
|
30
|
-
visual?: UnisphereVisualConfig;
|
|
31
|
-
runtime?: UnisphereRuntimeConfig;
|
|
32
|
-
style?: Record<string, unknown>;
|
|
33
|
-
}
|
|
34
|
-
export interface UnisphereVisualConfig {
|
|
35
|
-
widgetName: string;
|
|
36
|
-
runtimeName: string;
|
|
37
|
-
visualType: string;
|
|
38
|
-
visualSettings?: Record<string, unknown>;
|
|
39
|
-
}
|
|
40
|
-
export interface UnisphereRuntimeConfig {
|
|
41
|
-
widgetName: string;
|
|
42
|
-
runtimeName: string;
|
|
43
|
-
runtimeSettings: Record<string, unknown>;
|
|
44
|
-
}
|
|
45
|
-
export interface GenUiComposerToolRuntimeAvatarVisualSettings {
|
|
46
|
-
schemaVersion?: string;
|
|
47
|
-
layoutHint?: string;
|
|
48
|
-
layout?: GridLayout;
|
|
49
|
-
}
|
|
50
|
-
export declare const genUiComposerToolRuntimeAvatarVisualSettingsSchema: 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 GenUiComposerToolRuntimeName: "gen-ui-composer-tool";
|
|
5
|
-
export type GenUiComposerToolRuntime = UnisphereRuntimeBaseType<GenUiComposerToolRuntimeSettings> & {
|
|
6
|
-
readonly widgetName: typeof widgetName;
|
|
7
|
-
readonly runtimeName: typeof GenUiComposerToolRuntimeName;
|
|
8
|
-
};
|
|
9
|
-
export interface GenUiComposerToolRuntimeSettings {
|
|
10
|
-
schemaVersion?: string;
|
|
11
|
-
baseVisualSettings?: Record<string, unknown>;
|
|
12
|
-
}
|
|
13
|
-
export declare const genUiComposerToolRuntimeSettingsSchema: ValidatorSchema;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
/**
|
|
3
|
-
* Visual settings for GTC agenda list displayed in Genie answers.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* ```typescript
|
|
7
|
-
* const visualSettings: GtcAgendaListToolRuntimeAvatarVisualSettings = {
|
|
8
|
-
* sessions: [
|
|
9
|
-
* { id: 'session_123' },
|
|
10
|
-
* { id: 'session_456' }
|
|
11
|
-
* ]
|
|
12
|
-
* };
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export interface GtcAgendaListToolRuntimeAvatarVisualSettings {
|
|
16
|
-
/** Settings schema version */
|
|
17
|
-
schemaVersion?: string;
|
|
18
|
-
/** Array of session identifiers to display */
|
|
19
|
-
sessions: {
|
|
20
|
-
id: string;
|
|
21
|
-
}[];
|
|
22
|
-
}
|
|
23
|
-
export declare const gtcAgendaListToolRuntimeAvatarVisualSettingsSchema: ValidatorSchema;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
import { UnisphereRuntimeBaseType } from '@unisphere/runtime';
|
|
3
|
-
import { widgetName } from '../widget-types';
|
|
4
|
-
/** Runtime name constant for GTC agenda list tool */
|
|
5
|
-
export declare const GtcAgendaListToolRuntimeName: "gtc-agenda-list-tool";
|
|
6
|
-
/**
|
|
7
|
-
* GTC agenda list tool runtime for displaying multiple agenda items.
|
|
8
|
-
*
|
|
9
|
-
* Provides list view of conference sessions and events.
|
|
10
|
-
*/
|
|
11
|
-
export type GtcAgendaListToolRuntime = UnisphereRuntimeBaseType<GtcAgendaListToolRuntimeSettings> & {
|
|
12
|
-
readonly widgetName: typeof widgetName;
|
|
13
|
-
readonly runtimeName: typeof GtcAgendaListToolRuntimeName;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Configuration settings for the GTC agenda list tool runtime.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```typescript
|
|
20
|
-
* const settings: GtcAgendaListToolRuntimeSettings = {};
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export interface GtcAgendaListToolRuntimeSettings {
|
|
24
|
-
/** Settings schema version */
|
|
25
|
-
schemaVersion?: string;
|
|
26
|
-
}
|
|
27
|
-
export declare const gtcAgendaListToolRuntimeSettingsSchema: ValidatorSchema;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
/**
|
|
3
|
-
* Visual settings for GTC agenda displayed in Genie answers.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* ```typescript
|
|
7
|
-
* const visualSettings: GtcAgendaToolRuntimeAvatarVisualSettings = {
|
|
8
|
-
* id: 'session_123'
|
|
9
|
-
* };
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
|
-
export interface GtcAgendaToolRuntimeAvatarVisualSettings {
|
|
13
|
-
/** Unique identifier for the agenda session */
|
|
14
|
-
id: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const gtcAgendaToolRuntimeAvatarVisualSettingsSchema: ValidatorSchema;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
-
import { UnisphereRuntimeBaseType } from '@unisphere/runtime';
|
|
3
|
-
import { widgetName } from '../widget-types';
|
|
4
|
-
/** Runtime name constant for GTC agenda tool */
|
|
5
|
-
export declare const GtcAgendaToolRuntimeName: "gtc-agenda-tool";
|
|
6
|
-
/**
|
|
7
|
-
* GTC (GPU Technology Conference) agenda tool runtime.
|
|
8
|
-
*
|
|
9
|
-
* Provides conference agenda and schedule functionality.
|
|
10
|
-
*/
|
|
11
|
-
export type GtcAgendaToolRuntime = UnisphereRuntimeBaseType<GtcAgendaToolRuntimeSettings> & {
|
|
12
|
-
readonly widgetName: typeof widgetName;
|
|
13
|
-
readonly runtimeName: typeof GtcAgendaToolRuntimeName;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Configuration settings for the GTC agenda tool runtime.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```typescript
|
|
20
|
-
* const settings: GtcAgendaToolRuntimeSettings = {};
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export interface GtcAgendaToolRuntimeSettings {
|
|
24
|
-
/** Settings schema version */
|
|
25
|
-
schemaVersion?: string;
|
|
26
|
-
}
|
|
27
|
-
export declare const gtcAgendaToolRuntimeSettingsSchema: ValidatorSchema;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './runtime-types';
|